regex - JQuery between limit regular expression checker? -


how can write jquery code test if given variable between given variable:

min 

and given variable:

max 

also test alphanumeric(a-z, a-z, 0-9) or not?

ps: can check length(i value input field @ known id) test between condition, 1 better?

don't need jquery problem. plain-old javascript

function inrange(x, min, max){    return (x >= min && x <= max);    } function isalphanumeric(str){    return  /^[a-za-z0-9]+$/g.test(str); }  alert(inrange(50, 0, 100)); //shows true alert(isalphanumeric("me & you")); //shows false 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -