Dear all, I’m new to this forum. Thanks for reading this post.
I’m trying to resolve a problem which I need to insert some javascript codes in a PHP script so that it would handle this special case. This special case is described as below:
I have 5 checkboxes on the page, that’s say that they were named as checkbox1, checkbox2, checkbox3, ..etc. By default they are all “unchecked.” If the user click on “checkbox1”, then I want to force “checkbox3” to be also “checked,” and checkbox3 will also be disabled (grayed out, so that it can NOT be unchecked). Of course if checkbox1 is unchecked again, the it will “free out” checkbox3 so that it will no longer be disabled. Could anyone please give me some sample codes about how this could be implemented? Thanks!