194
rated 0 times
[
195]
[
1]
/ answers: 1 / hits: 9323
/ 10 Years ago, wed, march 26, 2014, 12:00:00
I need to run a function for each item in a drop down menu. The code is:
$( document ).ready(function() {
$('[id*=lwayer_x002d_EisDikigoros_1eef9a23-7a35-4dcf-8de9-a088b4681b2b]')
.each(function(index) {
/* here, I need to do some manipulation on the item */
console.log(index is:+???+value is+???);
});
});
I understand that i need to put something before each() to select all items but I don't know what to put
Thank you
The drop down menu is :
<select id=lwayer_x002d_EisDikigoros_1eef9a23-7a35-4dcf-8de9-a088b4681b2b_$LookupField title=Εισ. Δικηγόρος/οι>
<option value=0>(None)</option> <option value=1>(Name1)</option> etc
More From » jquery