matching
Hello,
I have a textbox where a user enters a code and if the code he enters matches the database it should prompt a alert
This is the code I have but its not working any idea
Code:
function calldiscounting()
{
var getdiscount=document.frm1.discount.value;
var checkstring=/discounting/;
var matchnow=getdiscount.search(checkstring);
if(matchPos1 !=-1)
{
alert("discount good");
}
else
{
}
}
If someone enters the code in lower case or upper case it doesnt work
any help is highly appreciated
thanks
todd
todd2006, September 7th, 2010 06:04 PM
Bookmarks