[Javascript] checkbox to change input field value

Mike Dougherty mdougherty at pbp.com
Mon May 22 08:22:48 CDT 2006


split the checked string on the comma.  Iterate the resulting array.  remove the value of each 
array element from the allvals string.  When you're done iterating the array, the only values left 
in the allvals string will be those that were not checked.

On Mon, 22 May 2006 14:16:11 +0100
  "Alan Easton" <alaneaston666 at hotmail.com> wrote:
> Thanks both of you, but I think I am still going to have problems. If the checkboxes are called 
>"allvals", then response,write request("allvals") will = 7899, 7900, 7901, 7902, 7903 and another 
>with the CHECKED values called "checkvals", then response.write request("checkvals") = 7899, 
>7900, 7903 So I know 7902 and 7903 are the values that were not checked, just by looking at the 2 
>variables. Sorry, I know I have moved away from JS to solve this problem, but if anyone can 
>advise on how to compare the 2 sets of values, and come back with the 2 that are not checked, 
>then I would appreciate it. Many Thanks. 



More information about the Javascript mailing list