I post via Ajax and get a return value which I then want to insert into an input text field – NOte there are “many” similar forms on the page hence the use of .parent. What is the right JQuery statement please.
Thanks in advance
$j(this).parent('form input[name$="tesitID"]').val(data)
The following jQuery should traverse from a trigger inside the form, to the form parent, then find the input and set the value to the supplied data.
example: