I would like to include only certain form fields when submitting a form using jQuery. For example, I would like to ignore all fields that have an attribute disabled... maybe something like this:
$('#my_button').click(function() {
if($('input').hasAttr('disabled') {
}
$('form').submit();
});
Any ideas?
source
share