Hello Experts,
I have following javascript function but it is not working
function addRow() {
var html = '' + '
' @Html.DropDownList("productList", null, "Select", new { @class = "form-control" }) ' +
' ' +
' ' +
' ' +
' ' +
' ' +
'
$(html).appendTo($("#Table1"))
};
I want to covert
@Html.DropDownList("productList", null, "Select", new { @class = "form-control" })
into html..please help me
Thank You

Ehsan SajjadRank #512 · 4.8K reputationPosted Jul 27, 2016, 8:37 AM EDT
PrakashRank #6,639 · 260 reputationPosted Jul 27, 2016, 9:03 AM EDT
Ehsan SajjadRank #512 · 4.8K reputationPosted Jul 27, 2016, 11:25 AM EDT
PrakashRank #6,639 · 260 reputationPosted Jul 27, 2016, 9:29 PM EDT