Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. document.getElementById("UpdatetxtDescription").value = "abc";
  2. document.getElementById("UpdateActive").checked = true;
  3.  
  4. @Html.TextAreaFor(model => model.Description, new { htmlAttributes = new { @class = "form-control", id = "UpdatetxtDescription" } })
  5. @Html.CheckBoxFor(model => model.Active, new { htmlAttributes = new { @class = "form-control", id = "UpdateActive" } })
  6.  
  7. <input data-val="true" data-val-required="The Active field is required." htmlattributes="{ class = form-control, id = UpdateActive }" id="Active" name="Active" type="checkbox" value="true">
  8.  
  9. <textarea cols="20" htmlattributes="{ class = form-control, id = UpdatetxtDescription }" id="Description" name="Description" rows="2"></textarea>
  10.  
  11. document.getElementById("UpdatetxtDescription").value = "abc";
  12. document.getElementById("UpdateActive").checked = true;
  13.  
  14. document.getElementById("Description").value = "abc";
  15. document.getElementById("Active").checked = true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement