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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -