Interviewer And Interviewee Guide

jQuery Interview Question:

Tell me how to select combobox select value and text using Jquery?

Submitted by: Administrator
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);
Submitted by:

Read Online jQuery Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.