I'm very new to jquery and just looking for some help.
current code:
var formData = {
'settings' : $('input[name=settings]').val(),
'name' : $('input[name=name]').val(),
'email' : $('input[name=email]').val(),
'superheroAlias' : $('input[name=superheroAlias]').val()
};
What im looking to do is instead of declare each individual field is maybe add a class to each input and pick up each field that way.
Im guessing this is possible but I've tried so many diffent ways and i feel im just confusing myself more
$("#formID").serialize()to get all the fields in the form.