How to select combobox select value and text using Jquery?
Submitted by: AdministratorExample:
var StateID = $("#StateCbx").val(); // Or you can use it $("#iStateID").val();
var StateName = $("#StateCbx option:selected").text();
alert("Selected combobox text is= " + StateName + " and value is= " + StateID);
Submitted by:
var StateID = $("#StateCbx").val(); // Or you can use it $("#iStateID").val();
var StateName = $("#StateCbx option:selected").text();
alert("Selected combobox text is= " + StateName + " and value is= " + StateID);
Submitted by:
Read Online JQuery Developer Job Interview Questions And Answers
Top JQuery Developer Questions
☺ | Explain jQuery? |
☺ | Why we need jQuery? |
☺ | What methods used to provide effects in JQuery? |
☺ | If you have a server control(asp.net server control, Button) and on the click of button you want to call a jquery function, So tell me how you will call a jquery function without postback? |
☺ | Explain jQuery connect? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |