You could try to use jQuery attribute selector.jQuery selector can automatically match elements that meet the requirements of the selector.
jQuery attribute selector document
Example:
$("input[id*='TextField'][title='question display name']")
or $("input[title='question display name']")
or $("[id*='TextField'][title='question display name']")
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.