Hi,
I've written a little scripts (AJAX +JS), which lets users build up a category "tree". For example:
They select "Europe". The next one will load "UK", "France", "Germany", etc ... then the next one would load "counties", the next one "cities", and finally road names.
Now, this all works ... but when someone selects a field, and then goes back a couple of SELECT boxes - it still holds the values for the field.
For example - the data pass into the script could look something like:
article_is_in_1 => 2345
article_is_in_2 => 345
article_is_in_3 => 546456
article_is_in_4 => 2345
..and if they go back to the select box 2, it would look something like:
article_is_in_1 => 2345
article_is_in_2 => 345
article_is_in_3 =>
article_is_in_4 => 2345
What I need to do, is set that value (article_is_in_4), to NULL (or -1)
Can anyone suggest how to do this? I'm using JQuery btw - if that helps =)
TIA
Andy
I've written a little scripts (AJAX +JS), which lets users build up a category "tree". For example:
They select "Europe". The next one will load "UK", "France", "Germany", etc ... then the next one would load "counties", the next one "cities", and finally road names.
Now, this all works ... but when someone selects a field, and then goes back a couple of SELECT boxes - it still holds the values for the field.
For example - the data pass into the script could look something like:
article_is_in_1 => 2345
article_is_in_2 => 345
article_is_in_3 => 546456
article_is_in_4 => 2345
..and if they go back to the select box 2, it would look something like:
article_is_in_1 => 2345
article_is_in_2 => 345
article_is_in_3 =>
article_is_in_4 => 2345
What I need to do, is set that value (article_is_in_4), to NULL (or -1)
Can anyone suggest how to do this? I'm using JQuery btw - if that helps =)
TIA
Andy