0

I have a website which users enter their contact information and discount systems process in-page to check the value of discount.

I would like to do it via jQuery/Ajax and check discount availability realtime when users fill the input has id=mobile, Automatically checking process starts without clicking on any "Buy" button to run the event. I've already do it by using this code:

$('#mobile').bind("change keyup mouseover",function(){
loadXMLDoc(document.forms["form1"].elements["data[Onlinetran][product]"].value+"&phone="+document.forms["form1"].elements["data[Onlinetran][phone]"].value);

});

But this doesn't work sometimes and when input filled up with safari autofill...

user3642119
  • 11
  • 1
  • 7

0 Answers0