HTML (php) how to check uncheck checkbox all at the same time : All I want is to check / uncheck all of the choices with one check button.


    <!DOCTYPE html>

    <html>
    <body>


    <form action="process.php" method="post">

    <p> Select pet: </p>
    <p> <input type="checkbox" name="dog" value="dog"> Dog </p>
    <p> <input type="checkbox" name="cat" value="cat"> Cat </p>
    <p> <input type="checkbox" name="bird" value="Tbird"> Bird </p>
    <p> <input type="checkbox" name="checkall" value="checkall"> All </p>
    </body>
    </html>

what code / codes am I missing? I need "All" to uncheck / check all choices if it is chosen by the user. I use xampp for this one. Thank you