JSFiddle - React, Tailwind, and code Playground
by Mahadevan Sivasubramanian
HTML
<div class="div_show">First</div>
<div class="div_show1">Second</div>
JavaScript
$(".div_show").hide();
$(".div_show1").hide();
var otherObj = JSON.parse(sessionStorage.getItem('storeDate'));
if (otherObj.storedValue1 && otherObj.storedValue2 && otherObj.storedValue3) {
console.log(otherObj);
$(".div_show").show();
}
var otherObj1 = JSON.parse(sessionStorage.getItem('storeDate1'));
if (otherObj1.storedValuej) {
console.log(otherObj1);
$(".div_show1").show();
}