BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
$(function () {
// declaration
ds = [
{
value: "value1",
text: "Value no 1"
},
{
value: "value2",
text: "Value no 2"
}
];
$('#bikeList').ejDropDownList({
dataSource: ds,
fields: { text: "text", value: "value" },
value: "value2"
});
});
function get() {
var ddlObj = $("#bikeList").data("ejDropDownList");
alert(ddlObj.getSelectedValue());
} |