javascript - concatinate text using insert after jquery -


i'm trying add "per person" after price on page, it's not working correctly.

so far have:

 window.onload = function per (){   $( "per person" ).insertafter( ".sqs-money-native" );   } 

any idea i'm missing?

$(document).ready(function(){     $( ".sqs-money-native" ).append( "per person" ); }); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -