I am trying to mask input only with optional negative or positive integers. I tried using
jQuery(function($){
$.mask.definitions['~']='[-]?';
$("#eyescript").mask("~?999999999");
});
but this is allowing any character at the first place. (Eg: f12, -12, +12, /12, etc..)
I want the user to strictly use only '-' or any number in the first position.
How can I do this?