I need to write jquery code like :
if($('label').hasClass('info_')) {
}
There are many class names like : info_1, info_2 ,info_3 etc. So , I must write that, if label has a classname which starts info_; do something.
But I looked jquery site and searched hasClass(). There is no example about this. Is there any way to do it? Thank you.
Try using :
As per your code instead of
hasClassor