Wednesday, April 15, 2015

asp.net listbox select items by value jquery

  $.each(data[0].Work.split(","), function (i, e) {

                            $("#<%=lb.ClientID%> option[value='" + e + "']").prop("selected", true);

                        });

No comments:

Post a Comment