Jump to content

touchstart and click on refresh only


IndianaGuy
 Share

Recommended Posts

I have a very simple code that often only works after I get to the page, then ask for the page to reload. If I click the button without reloading, nothing happens. If I click after page refresh, it works perfect. Thank you for your help. This page has a few tables all brought in by PHP select statements etc. Could that possible have some anything to do with it?


 

	<script>
	$(document).ready(function(){
	//OPENING PRIMARY
	$('.OpenerPri').on ('touchstart click',function() {
  
    var ppNum = ($(this).val());
    var callType = 'opener_pri';
    ($(this).prop('disabled', true));
    ($(this).html('Thx'));
         $.post("reservecall.php", 
           {
           ppnum:ppNum,
           calltype:callType
          },
    function(data, status){
        alert("Data: " + data + "\nStatus: " + status);
    });
});
	
});
	</script>
	

Edited by IndianaGuy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...