jQuery Tutorial plus Question:
Download Job Interview Questions and Answers PDF
Tell me how to select combobox select value and text using Jquery?
Answer:
Example:
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);
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);
Download jQuery Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the use of noConflict() method in Jquery? | Can we call C# codebehind method using Jquery? |