$butt =$('<button id="inv" onclick= "document.location.href = 'http://www.google.com';"> Inv </button>');
$('#exbuttons').prepend($butt);
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Open in new window