Hello,
I have an HTML form that Sends Search Criteria to a DB and Gets back the results,
I have been Trying to Validate these fields, in a way that when the user enters the search criteria, for example AbCd, the
Script will Pass alphabetic characters, anything matching abcd regardless of the CASE. does anyone have any Ideas? if so please help!
I am not really Sure What the code should look like,
in this case, I am pretty new to JavaScript....
function convertStr(str) {
if (document.form.model.value =" " \\not sure what the value should be equal to?
Then
\\Change criteria to both upper and lowecase and send both uppercase and lowercase search criteria
str = str.replace ???????
I have an HTML form that Sends Search Criteria to a DB and Gets back the results,
I have been Trying to Validate these fields, in a way that when the user enters the search criteria, for example AbCd, the
Script will Pass alphabetic characters, anything matching abcd regardless of the CASE. does anyone have any Ideas? if so please help!
I am not really Sure What the code should look like,
in this case, I am pretty new to JavaScript....
function convertStr(str) {
if (document.form.model.value =" " \\not sure what the value should be equal to?
Then
\\Change criteria to both upper and lowecase and send both uppercase and lowercase search criteria
str = str.replace ???????