I'd like to assign a different homeworks to three different students , so once i choose the student from the drop down list and check with the checkbox the wanted homework for that student i like it to be his own homework "after a confirming message " so once again i choose another student and the homework that i already assign it to the previous student would be disable or hidden so it would be only assigning the non taken homeworks so in the end under each student will be the assigned homeworks using jquery.
i hope you would help me ... thank you
here is my code HTML
<html>
<div id="containerlog">
<form>
<label for="name">Student Name:</label>
<select>
<option value="Jhon">Jhon</option>
<option value="Jessi">Jessi</option>
<option value="Baker">Baker</option>
</select>
<div>
<input type="checkbox"><label class="check" for="checkbox">HW-1</label>
</div>
<div>
<input type="checkbox"><label class="check" for="checkbox">HW-2</label>
</div>
<div>
<input type="checkbox"><label class="check" for="checkbox">HW-3</label>
<br>
</div>
<div>
<input type="checkbox"><label class="check" for="checkbox">HW-4</label>
</div>
<div>
<input type="checkbox"><label class="check" for="checkbox">HW-5</label>
</div>
<div>
<button type="button" onclick="alert('Are you sure!')">Submit</button>
</div>
<div id="checker"></div>
</div>
</form>
*JQUERY*
$(document).ready(function(){
$( "input" ).on( "click", function() {
$( "#checker" ).html( $( "input:checked" ).hide());
});
});
Aucun commentaire:
Enregistrer un commentaire