I have a form field, that is populated by user input. However, the user has the ability to populate the form field with additional pre-defined text from a drop down box using an onchange trigger.
input.value = dropdown.value + input.value
|
However, obviously using this method, the user could then accidentally (or purposefully) have a line filled of predefined text from the drop down. How do I check (possibly using arrays maybe) using client side (and cross browser js) that the user is not repeating stuff from the drop down?
Once thing of note is that each listing in the dropdown is one word, begining with a /, if that helps any.
Cheers