Skip to content

How to populate select box using jquery/jason

Salma Swalahin

Asked Mar 4, 2015, 1:50 AM EST1 answer
Share
LinkedInX
I am using a <select></select> box without runat="server" and  want to populate using jquery/json.
I am only using html controls not any aspx control,And please describe it briefly bcoz i am new to jquery/json concept.
Select box binding from database table.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    If you are using mvc you can bind your data table to list and you can pass that list to view bag.


    using view bag property you can bind your dropdown


    @Html.DropDownList("istateid", (SelectList)ViewBag.stateList, "--Choose Your State--")
    0