I was dabbling with the form serialize but surprisingly its not serializing the form. Here is the code:

<div id="content">
</div>
<form  id= "myform">
    <input type="text" id="inp"value="mytext">
    <input type="button" id="btn" value="serialize"/>
</form>

Here is the jQuery code I am working with:

$("form").submit(function(e){
    e.preventDefault();
    var v= $(this).serialize();
    console.log(v);
});

Here is the fiddle

Edit
Report