Hello everyone, I need to get the selected value from an ajax.net combobox throught javascript so that I can do some client side validation.
What's the best way to do this? Thanks,
I've been able to get the value with this:
var combo = $get('ddlComarcas');
var comboHidden = $get('ddlComarcas_HiddenField');
var o4 = combo.getElementsByTagName('li')[comboHidden.value].childNodes[0];
alert('"' + o4.data + '"');
But I still need to trim the value from o4.data. Anyone can point how to do that visual studio 2008 jquery?