0

i have a check box and a text box. On selection of the check box, the string in the text box must be returned in the form of a label. I am new to MVC. please provide some guidelines and links.

Html:

<input type="button" value="Submit" id="submit" name="comBox" />
<input type ="text" id="comment" />

Script:

<script type="text/javascript">
    $.ajax({
        url: '/Controllers/HomeController',
        type: 'POST',
        datatype: 'html'

    }).success(function (result) {    
        $('#comm1').html(result);
    });
</script>
Verkion
  • 630
  • 8
  • 25
user43553
  • 65
  • 5
  • 14

0 Answers0