I have an input field for phone number and I need it to do something only if the input value contains numbers AND/OR special characters...
I have the following:
var inputphone = $('input#phone').val()
if($.isNumeric(inputphone) || inputphone.match(/.^\+$/)){
//action
}
But this works only with numbers, if i write the phone number like 0000.000.000 it won't work.