Skip to content

Instantly share code, notes, and snippets.

@athiwatp
Last active November 17, 2016 07:23
Show Gist options
  • Save athiwatp/fefff858d0e92c1b8fbaa412bc4c2650 to your computer and use it in GitHub Desktop.
Save athiwatp/fefff858d0e92c1b8fbaa412bc4c2650 to your computer and use it in GitHub Desktop.
jQuery( ".coupon_count" ).each(function( index ) {
console.log( index + ": " + jQuery( this ).text() );
if( jQuery(this).text() == 0 ){
jQuery('class ปุ่ม').add('class สีเทา');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment