jquery toggle attribute true false code example
Example 1: jquery toggle attribute disabled
$('#el').prop('disabled', function(i, v) { return !v; });
Example 2: jquery toggle show hide
$( "#clickme" ).click(function() {
$( "#book" ).toggle( "slow", function() {
// Animation complete.
});
});