I have a few forms with the IDs comment_addXXX. I want to submit all of these at once, rather than individually submit each form.
i.e. Can I simplify something like:
$('#comment_add1111').submit();
$('#comment_add111122').submit();
$('#comment_add1222111').submit();
$('#comment_add11133331').submit();
Into something like:
$('#comment_add*').submit();
Try the starts with selector
See http://api.jquery.com/attribute-starts-with-selector/