Blog Detail

Selected text of dropdownlist using JQuery

01 Feb 11
admin
one comments
Hi,

We will get selected text of a dropdownlist using JQuery.

syntax:

$(“#myselect :selected”).text();

For an ASP.NET dropdown you can use the following:

$(“[id*=’MyDropDownId’] :selected”).text()

Happy Programing…

1 Comment

  1. JIJEEV SUKUMARAN April 12, 2011 at 2:49 pm Reply

    Its working properly.. nice

Leave A Comment