javascript - Change @Html.TextBox to regular html code -
javascript - Change @Html.TextBox to regular html code -
in code(mvc5 appilcation) i've next code working when js file inside index view file,when take java script , set in file within scripts , run programme see '@html.textbox("user")' in page,how should adopt code work scripts not within index.
var td = $emptyrow.children().first(); td.empty(); td.append('@html.textbox("user")');
@html.textbox razor syntax mvc. if have dynamically create text box using javascript should append <input />
mentioned below:
var td = $emptyrow.children().first(); td.empty(); td.append('<input type="text" id="user"/>');
javascript html asp.net asp.net-mvc asp.net-mvc-4
Comments
Post a Comment