jquery - how to use this in combination with div element classname -
how use this
in combination classname in div tag,
$(this).$('.reason_1').show();
if need check whether current element has class reason_1
try:
if($(this).hasclass('reason_1')){ $(this).show(); }
if need change html then:
$(this).html($('.reason_1').html());
Comments
Post a Comment