Answers for "how t o find class name with jquery"

8

jquery get class name

//jQuery get class name of element 
var className=$('#myElementID').attr('class');
Posted by: Guest on July-31-2019
0

how to find a name of class from page in jquery

$("input[type='submit']").click(function() {
    if ($(".Mandatory").length > 0) {
        // Do some code here
    }
});
Posted by: Guest on October-17-2020

Code answers related to "how t o find class name with jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language