Possible Duplicate:
How to change the value of a custom attribute
I have input field as such:
<input type="text" size="40" locationcode="" userid="" id="inputQuery">
How can I select the element using its id and and put value onto userid attribute?
You should use a
data-prefix to add a custom attribute, i.e.data-userid="yourValue"So in your case you should setup your input like this.
Then you can use: