I have many href generated dynamically with php, and i need event listener click. it´s no very much problem, but when i´m traying to do click in one, always returned me, same data. i have this: my html is: update but i need if i want to do click in href witch id 12 go to id 12, now always
Tag: dynamic-html
How do you remove all the options of a select box and then add one option and select it with jQuery?
Using core jQuery, how do you remove all the options of a select box, then add one option and select it? My select box is the following. EDIT: The following code was helpful with chaining. However, (in Internet Explorer) .val(‘whatever’) did not select the option that was added. (I did use the same ‘value’ in both .append and .val.) EDIT: Trying