I have a div with the following classes:
form-group val-presence-text val-type-pos-int val-length-10 has-success has-feedback
I want to get 10 from the class name val-length-10 . I tried various methods, but none of them work for a multi-class dynamic attribute like this. In addition, 10 can be any positive integer, and the class can be located anywhere in the class group.
Any ideas?
javascript jquery substring html
Noranda Brown May 01 '14 at 15:10 2014-05-01 15:10
source share