Hey guys just a quick question, my AJAX is working in FF and Opera just fine, As in it repeats the function whenever the button is clicked, but in IE the first click works, but then it doesn't repeat...
I've been searching around form some fixes, and found quite a lot but none of it seems to work [as you can see i've tried adding '.live' but still nothing], wondered if it was obvious to anyone what was wrong here?
Heres' the code:
<script type="text/javascript">
$(document).ready(function(){
$('#generate-quote').live('click', function(e) {
e.preventDefault();
$.getJSON("generator.php?", {act: 'char_con'}, function(data){
$(".quote").html(data);
});
});
});
</script>
This is currently at the top of my index.php, but the button to run this function is echoed by php which I feel may have something to do with it? I'm not sure?
Thank help appreciated,
ello.