rculver
01-16-2003, 12:19 PM
In Javascript, is there a way in an if statment to state the following if (ele.[i].name == "quoteStat*" where the asterisk can be numbers or letters?
|
Click to See Complete Forum and Search --> : Searching for wildcards rculver 01-16-2003, 12:19 PM In Javascript, is there a way in an if statment to state the following if (ele.[i].name == "quoteStat*" where the asterisk can be numbers or letters? Charles 01-16-2003, 12:32 PM <script type="text/javascript"> <!-- if (ele[i].name.match(/quoteStat.+/)) alert(); // --> </script> rculver 01-16-2003, 12:39 PM What if the portion of /quoteStat was a variable such as str? Would you have if (ele[i].name.match(/str.+/))? rculver 01-16-2003, 01:50 PM Thanks for the help, Charles. This worked the way we wanted it to. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |