jQuery/Javascript event not triggering on <a> tag -


i having issue event triggering on <a> tag. alert doesn't show when clicked.

$('.thb-audio-wrapper #fap-play-pause').on("click",function(){ alert('hello'); }); 

try using this:

$('.thb-audio-wrapper').on("click", '#fap-play-pause' ,function(){ alert('hello'); }); 

Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -