JQuery | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

JQuery

How to get a specific one option from drop down lists, if I get specific one option to apply conditions whether the user can select tat option ill disabled tat one.. if any one knows kindly update ur answers. Thank you

22nd Apr 2018, 10:07 AM
Mőhåň Ķűmæř
Mőhåň Ķűmæř - avatar
1 Answer
0
this will get you all options in a select tag $("#selectId > option").each(function() { alert(this.text + ' ' + this.value); });
22nd Apr 2018, 11:40 AM
Pavan Kumar T S
Pavan Kumar T S - avatar