i want a form containing a text bar to appear when comment is clicked
I couldnt do it using razor so I tried writing a Jquery script
I dont know jquery by the way, I just wrote this by researching. What am I doing wrong? Is there another way to get it done? Thanks in advance
HTML:
<li><a href="#" id="comment">Comment</a></li>
I couldnt do it using razor so I tried writing a Jquery script
HTML:
<script type="text/javascript">
$('#comment').click(function () {
$('div#txtcmd').html
(@using (Html.BeginForm("comment", "post"))
{
@Html.TextArea("Comment")
}
)});
</script>