I have a field to insert telephone with option for international ddi, I would like to check if the first 2 digits are not 55 I want to remove the mask, but it is not working.
$("#tell_internacional").click(function(){
var cell = $("#tell_internacional");
if (cell.substring(2) != '55'){
$("#tell_internacional").unmask();
}
})