Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
$(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());
} |