okay i'm really stuck 🙁
here is my problem or what i'm trying to accomplish
basically i have a table with a form.
The table has 3 columns. First column is the products name and the next 2 column are checkboxes (claim or drop) the product.
With that said, the form is one big form hosting all of the checkboxes. The checkbox name are named after their id + their column name whether its claim or drop
e.g. claim102 and drop102 for product id 102
The tables and checkboxes are created all dynamically with php but for user friendliness I want the user to be able to use checkboxes (can diselected easier) instead of radio button.
I was hoping to create a javascript that works with my php script to take the name of the two check boxes that are in the same row
I have the psuedo code in my head but just can't get the syntax right
this is the psuedo code in my head
<script>
function validateCheckbox(cbox1, cbox2)
if (cbox1 == checked)
{
if (cbox2 == checked)
{
cbox2 = unchecked
}
}
</script>
The function would be call upn the onClick event for each respecitve check box.
e.g. claim102 checkbox is checked the onClick will call the function with claim102, drop102 as th variable.