Hi!
I wrote a script who puts data into a table and at the end of each row there is a checkbox that users can use to delete or move data.
I want the submit buton do be enabled only if there's at lease one checkbox selected.
Now i use this :
<input type="checkbox" name="checked[]" value="'.$row['id_person'].'" onClick="this.form.buton_delete.disabled = !this.checked">
<input type = "submit" name="buton_delete" value="Delete selected" disabled="true"> </form>
But its not enough cause if i select for example 2 checkboxes, and then change my mind and deselect one of them, the script disables the submit buton while theres one checkbox checked!
Please help me with this