I have a drop downlist as follows:
<select id="example" name="example" runat="server">
which gets populated in the code behind like this:
example.DataSource = new CampControl().GetCountries();
example.DataTextField = "CountryDesc";
example.DataValueField = "ID";
example.DataBind();
example.Attributes.Add("multiple", "multiple");
and on the click of the items in the list I have a jQuery function:
$inputs = this.inputs,
$checked = $inputs.filter(':checked'),
$checked.each(function (index) {
alert($(this).text());
});
But $(this).text() is always coming back as an empty string,
Am I doing anything wrong? Please help
Thanks in advance.
I got the value using this: