I have an attribute which might look like this abcjQuery12345, these numbers are just an example.
Is there a way to determine an attribute which contains a substring in jQuery?
E.g. abcjQuery12344353452343452345="12"
The only thing I know is that the attribute will contain abc.
You can loop through all the attributes and check if they contain the string you are looking for. With:
You could use:
See a fiddle