i gave one dropdown and it has one custom attributed i added called ShipTo. now my dropdown html looks like
<select id="ddlCountry" runat="server" style="width: 300px; font-size: 9pt; float:left; margin-top: 3px;">
<option shipto='' value="">Select your location</option>
<option shipto='GBR' value="gb_en_home">United Kingdom - English</option>
<option shipto='USA' value="us_en_home">United States - English</option>
</select>
this way i try to read custom attribute value
var ShipTo = $("#ddlCountry").attr("shipto");
alert(ShipTo );
but the above code does not work. so can anyone guide me how to achieve it. thanks
EDIT
i figured out how to read that custom attribute data
var ShipTo = $("#ddlCountry").find('option:selected').attr("shipto");
the above code works fine.