[wd_asp elements=’search’ ratio=’100%’ id=1]

Get value/text from select dropdown and show div

20th July 2013

Jquery - Strings

jquery icon

Get value from selected dropdown.

dropdownvalue
dropdownvalue

Most basic way is

var textboxvalue= $('#qualsearchbox option:selected').text();
alert(textboxvalue);

There are two ways depending on of one page is being called inside another page.



//second way

Another variation on this is: –

Get the text of the dropdown

This next code will show an amount of div you decide upon.




hi1
hi2
hi3