vinit vinit - 7 months ago 12
PHP Question

how to insert data in php when checkbox is checked div one data and check box unchecked other div data

i have one form when user click i am user user div data inserted and he select i am seller the other div appear and user div hide this div data inserted ?
how can i do this

Answer

try this

dvnoreading display:none

$(function () {
        $("#chkreading").click(function () {
            if ($(this).is(":checked")) {
                $("#dvnoreading").show();
                $("#dvnoreading2").show();
               $("#dvreading").hide();
            }else {

               $("#dvnoreading").hide();
               $("#dvnoreading2").hide();
               $("#dvreading").show();
            } 
        });
    });