skip to Main Content

Javascript alert the rest of the row content using a checkbox

I have code currently where I can output the value inside the selected checkboxes: <button name="save_multicheckbox" class="btn-primary" onClick="getCheckbox()">Save Checkbox</button> function getCheckbox() { var checks = document.getElementsByClassName('checks'); var id_value = ''; for ( i=0; i<4; i++) { if (checks[i].checked === true){…

VIEW QUESTION

echo an SQL row for each using a checkbox and a submit button – PHP

I will simplify the code in order to highlight what I need: <form id="highlighttable" name=form1 method="POST"> <div class="form-group"> <button name="save_multicheckbox" class="btn-primary">Save Checkbox</button> </div> <?php if(isset($_POST['save_multicheckbox'])){ echo "<p>yes</p>"; $checklist = $_POST['ckb']; foreach($checklist as $list) { echo "<p>as</p>"; } } ?> <table>…

VIEW QUESTION

check all checkbox by class name – Javascript

I´m trying to check and unchex all check boxes with javascript and vue. const checkAll = () => { var array = document.getElementsByClassName("assign_register"); for(var i = 0; i < array.length; i++){ if(array[i].type == "checkbox"){ if(array[i].className == "assign_register"){ array[i].checked = true;…

VIEW QUESTION
Back To Top
Search