[Solved] on click div showing but not hide please help me [closed]


see your updated fiddle:

http://jsfiddle.net/jFIT/hLd5W/4/

var id = $(this).attr('id').slice(-1);
    var previs = $('div.product-detail:visible');
    $('div.product-detail').hide();
    if (previs.is($('.det' + id))) {
        $('.det' + id).hide()
    }
    else
    {
        $('.det' + id).show();
    }

    //if (detailedDiv.is(':visible')) detailedDiv.hide();
    //else detailedDiv.show();
    e.preventDefault()

3

solved on click div showing but not hide please help me [closed]