macek/jquery-serialize-object

Hey macek, coding problem

Closed this issue · 5 comments

Hey, trying to get this form to work but it's not giving me the result set I want. here is my code

@hokiehokieh, your code paste didn't come through. If you're still having an issue, I'd be glad to help.

Paul,

Thank you so so much for willing to help! I am pretty new to coding, so I
feel like I don't understand everything fully. Anyways here is the code I
have using your jquery-serialize-object

On submit I am trying to print the JSON object to the result div, but
everytime I submit it isn't working. Thanks for taking a look at it

<script src="jquery.serialize-object.js"></script> <script src="jquery-1.9.1.min.js"></script> <script> $(function() { $('#myForm').submit(function() { $('#result').text(JSON.stringify($('#myForm').serializeObject())); return false; }); }); </script>

JSON

            This should return a JSON
        

At first glance, it looks like you'll have to include jquery first, then include the jquery.serialize-object script.

I'll put together a jsFiddle for you; that should help.

Cool that worked! Completely blown away by your quick response and
willingness to help a total stranger. Thanks again!

@hokiehokiehi, I'm glad I could help.

Here's the jsfiddle if that helps anymore: http://jsfiddle.net/f29Dy/1/