I want this code to find a local storage value and if it is true show a grid but if it is false, hide the grid. I tried this code but I can't get it to work right. Any ideas on what I did wrong?
var v = localStorage.getItem('checkcalfid');
if (v===true)
{
jQuery('[name="mobilegridcell_385"]').closest("tr").show();
}
else jQuery('[name="mobilegridcell_385"]').closest("tr").hide();