Web Analytics Made Easy -
StatCounter Delete selected checkboxes - CodingForum


No announcement yet.

Delete selected checkboxes

  • Filter
  • Time
  • Show
Clear All
new posts

  • Delete selected checkboxes

    i want to delete selected checkboxes but i don't know the wat.plz tell me with proper coding.i m using this code to select all checkboxes.
    [CODE]function checkAll(field)
    if(field.length!= "0")
    for (i = 0; i < field.length; i++)
    field[i].checked = true ;

    function uncheckAll(field)
    for (i = 0; i < field.length; i++)
    field[i].checked = false ;

    using this to display checkboxes
    [CODE]<input type="checkbox" name="CheckAll[]" value="Check All" onClick="checkAll(document.frm.list)"><input type="checkbox" name="UnCheckAll[]" value="Uncheck All" onClick="uncheckAll(document.frm.list)">&nbsp;</td>/CODE]

    please help me how much u can do?
    thanks i advance.........

  • #2
    I do not understand what you mean by "deleted selected checkboxes".

    Do you want a checkbox which when checked will then check all the checkboxes in a form? And another one which when checked will uncheck all the checkboxes (except this one)?

    Quizmaster: Which British Prime Minister was born in Yorkshire in 1852?
    Contestant: Jim Callaghan.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.