MVC/HTML - input submit won't trigger when HTML is in a text area

Posted by cw on Stack Overflow See other posts from Stack Overflow or by cw
Published on 2010-04-15T00:56:59Z Indexed on 2010/04/15 1:03 UTC
Read the original article Hit count: 614

Filed under:
|

Any idea why the below code doesn't trigger if I were to put some HTML inside the textarea? It works fine it I don't have HTML in it, but I'm not sure why it doesn't work with it. Here is the code.

<form action="/Home/AddPost" method="post">
    <table>
        <tr>
            <td>Post Title:</td>
            <td><input id="Title" type="text" name="title" /></td>
        </tr>
        <tr>
            <td>Post Description:</td>
            <td><textarea id="Description" rows="10" cols="60" name="description"></textarea></td>
        </tr>
    </table>
    <input type="submit" value="Save" />
</form>

© Stack Overflow or respective owner

Related posts about mvc

Related posts about html