I am wondering if anyone out there can tell me how/where I might find a JavaScript that searches a text input field in an HTML form for Quotes.
I do not want users to be allowed to type a quotation mark in to the field, however, they CAN type the html command for a quote
(the & followed by quot

.
I tried to do the following inside a function and it didn't like the 3 quotes.
if (passedVal.charAt(i) == """) {
alert("You cannot use quotation marks in this field")
return false
}
Any suggestions on how to tweak this code to stop people from using the quotation marks and use the HTML command for a quote mark instead?
Peace,
O
B unce!