pass data to Html.TextBoxFor with JQuery
- by ognjenb
In one of fields like this:
<div class="editor-field" >
<%= Html.TextBoxFor(model => model.Engineer1Id)%>
<%= Html.ValidationMessageFor(model => model.Engineer1Id) %>
</div>
I try to pass data with JQuery:
var Id = $(this).attr("rel");
$("#Engineer1Id").append(Id);
Why data doesn't put in specified field