Trying to use Josh Bush's masked input plugin.
I want to shift focus and do other things once the person puts their cell phone in. I mask to a phone shape. When I hit the last letter, I want it to trigger a javascript function. Right now that function just alerts hi.
I even copied the demo right off Josh Bush's page: http://digitalbush.com/projects/masked-input-plugin/ the third one for triggering something to complete. Copying it verbatim and it still doesn't work?
Am I crazy? Can anyone get this to work.
function jump(){
alert('hi');
}
$(document).ready(function(){
$("#cellphone").focus();
jQuery(function($){
$("#product").mask("(999) 999-9999",{completed:function(){jump();}});
});
});