Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get the class name dynamically using jquery

$(document).ready(function () {
    var $classOfBtn = $('#btn').attr('class').split(' ')[0] + '-64';
    alert($classOfBtn );
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #class #dynamically #jquery
ADD COMMENT
Topic
Name
1+3 =