Hi all,

I've been looking at stuff like this (check for these chars and disable submit button if present):

function check(node)
 {
  var re = new RegExp('[<>\?\\[\\]]', 'g');
  document.getElementById('sub').disabled = re.test(node.value);
 }

What I'm asking now is, is there an equivalent function using words instead of characters? I would like to make words such as 'ranking' 'SEO' 'search' 'engine' etc disable the submit button. I've looked, but can't find anything. As you'll have guessed, I'm no good at JS!

Thanks,

Bob


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to