javascript - Missing values when serializing form -


i'm trying serialize form via jquery("#feedback-form").serialize();

it returns "z_name=&z_requester=&z_description=" no matter in input-fields , textarea.

<form id="feedback-form" method="post" name="former">     <div id="box-form">         <p><input type="text" placeholder="name" name="z_name"></p>         <p><input type="text" placeholder="e-mail" name="z_requester"></p>         <p><textarea cols="40" rows="10" placeholder="message" name="z_description"></textarea></p>         <p><input type="submit" value="abschicken" id="submitter"></p>     </div> </form> 

maybe want change <p><input type="submit" value="abschicken" id="submitter"></p> , try button instead <p><button type="submit">test</button></p>

the js code into

$('#feedback-form').submit(function(evemt){     $('#console').html( $('#feedback-form').serialize() );     event.preventdefault(); }); 

type value , it's work fine, please refer jsfiddle


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -