i’ve got this
$('#div').attr("hidden", true);
i tried:
var a = $('#div').attr("hidden");
var b = $('#div').attr("hidden").val();
var c = $('#div').hidden;
var a = $('#div').disabled;
i just want to know whether hidden is true or false. does anybody know? my research results are all about forms and inputs.
attribute will never be
true, it can have strings only.jQuery has the
datafunctions for objects other than strings:If you wanted to hide the
div, use.hide():And you check if the div is visible with
:visible\:hidden