i'm new in jquery and i dont know how to use it, this is code i create look like
<div id="checkbox-container">
<div class="hidefull">
<input type="checkbox" value="hideFull" id="check-hide-full-table">Hide Full
</div>
<div class="hideempty">
<input type="checkbox" value="hideEmpty" id="check-hide-empty-table">Hide Empty
</div>
</div>
and jquery i create like this
function test(){
alert("test called");
$("#check-hide-empty-table").prop("checked", true);
}
so the problem is, how to checked checkbox using jquery? i'm already look this but still not checked. somebody know what's wrong with my code?
i want create if load new page, that checkbox, checked.
FYI, that alert showed.