Button not working when loading content from page
So, using jquery ajax call, I upload content from a php page into a div named #mainDiv. This all works fine.
However, when I include a button into the div, it appears but doesnt do anything, like its not active. I assume its not in the DOM? Not sure. Can someone help to make it active?
The js I'm using looks like this:
So basically, in the about.php I've got a "contact" button. This button has a href of #contact so when that is pressed I'd like the contents on contact.php to load. So I have this in about.php
<p>some about text here</p>
<p><button href="#contact" class="btn btn-small btn-primary pull-left">Contact</button></p>