I am using MVC 4 with razor view. What I want to do, is to add a new example of my div class to the scene. What do I need in my Jacobs?
This is the div.
& lt; Input type = "button" id = "btAdd" value = "add answer" /> & Lt; Div class = "answerLabel" & gt; @ Html.LabelFor (model => model. answer.AnswerText, new {id = "answerLabelField"}) & lt; / Div & gt; & Lt; Div class = "answer editor" & gt; @ Html.EditorFor (model = & gt; model.answer.nswerText, new {id = "AnswerEditorField"}} @html. Validation message (model = & gt; model. Answer.AnswerText) & lt; / Div & gt;
Jquery
$ (document) .ready (function () {$ ('# btAdd'). Click (function () {// What do i need here; false return;});
});
use .append (.html ())
$ ('body'). Attachments ($ ('. Respondents') .html ());
No comments:
Post a Comment