Hi - I need a little (simple I think) javascript help. I have the following
js code which functions to check an identical checkbox on the same page if
the user clicks on a certain checkbox. Works great - but what I really need
to do is modify it slightly so it works with a wildcard operator - so
similar checkboxes are automatically checked, not identical ones, based on a
wildcard. For example:
<input type="checkbox" name="check"
value="#fullfileid##processid##deptcode#"
onclick="for (i=0; i<form.check.length; i++) if
(form.check.value=='#fullfileid##processid##deptcode#')
form.check.checked=this.checked">
This works- except I want it to check those on the page where the fullfileid
and process is the same, regardless of the deptcode. So I need something
like (but obviously this syntax is way wrong):
<input type="checkbox" name="check"
value="#fullfileid##processid##deptcode#"
onclick="for (i=0; i<form.check.length; i++) if (form.check.value
LIKE'#fullfileid##processid#'+'*') form.check.checked=this.checked">
Anyone have any ideas? I'm kinda on a time crunch for this and I'm wasting
far too much time searching for the right syntax.
TIA,
Melanie Smith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists