0

I have made a form with multiple text boxes. On submit button click I want text boxes in the form to be locked as to prevent any editing of the shown data.

Morteza
  • 2,378
  • 5
  • 26
  • 37
  • visit http://stackoverflow.com/questions/10449508/asp-net-mvc-disabled-text-box-updated-by-javascript-does-not-post-new-value may this link will help you. – vignesh May 15 '12 at 05:43

1 Answers1

0

Use JQuery:

<script>
  $(document).ready(function(){
    $("form").submit(function(){
      $("input").attr("disabled", true);
      return true;
    });
  });
</script>
Morteza
  • 2,378
  • 5
  • 26
  • 37