JQuery Developer Question:

How to select combobox select value and text using Jquery?

Tweet Share WhatsApp

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);

Download JQuery Developer PDF Read All 51 JQuery Developer Questions
Previous QuestionNext Question
What is use of noConflict() method in Jquery?Can we call C# codebehind method using Jquery?