Is there a way to get class name starting with class something as below:
$('#div:visible').attr('[class^=qest]')
Is there a way to get class name starting with class something as below:
$('#div:visible').attr('[class^=qest]')
Use jquery attribute selector like this.
$('[class^=qest]').each(function() {
alert($(this).attr("class"));
});
This will get all the elements with class name starts with 'qest' and then loop through each element.