i have a dropdownlist in my web-page how i can get the value from the selected option of them
like
$('#selme option:selected').html()
Try
$("#selme").change(function(){
$(this).find("option:selected").text();
});
See a working demo
Check it Out-->
For getting text
$("#selme").change(function(){
$(this[this.selectedIndex]).text();
});
For getting value
$("#selme").change(function(){
$(this[this.selectedIndex]).val();
});
http://groups.google.com/group/jquery-en/browse_thread/thread/2970457bc8ec7ec5?pli=1
All there for you
Try this..
$('#selme option:selected').text();
Here is a jsfiddle for you I just made http://jsfiddle.net/AqmZp/
Basically it actually is just $("#selme").val();