I am dynamically creating a table containing an <input> (the one marked as "//Award". How do I populate it with a value using its name (name='awardInput').
My code is:
The "alert(responseJson1a['awards']);" displays "Animals and Birds - Level 1, Art and Design - Level 1".
Then "selector.closest('tr').find('.awardClass').$('input[name="awardInput"]').val(responseJson1a['awards']);" gives the console error "Uncaught TypeError: selector.closest(...).find(...).$ is not a function".
To provide an HTML "input" element with a value, you assign something to its "value" attribute. Right now you don't have one on the line you referenced, but you could certainly add one and put a bit more string concatenation in your code to populate it. (I don't understand what you mean by "using its name".)