I need to get the value of the first checkbox which is checked and who’s class name begins with ‘rqc’, eg. rqc205
I have tried this: requestID=$('#requestsTable').find('input[class^='rqc']:checked').val();
but it yields nothing, whereas requestID=$('#requestsTable').find('input:checked').val(); works but does not limit to the class.
You have a syntax error. Either fix your quotes around the attribute value, or remove them altogether (they don’t seem to be required).
or