hi,
hide the div in page load..i tried with following code ..
problem is after clicking search also div hiding...because after button click also ready fun executing..
Req:only one time means first time page load div should be hide..
pls anybody give me soln..
$(document).ready(function () {
$("test").hide();
$("#btnSearch").click(function () {
$("#test").show();
});
});
Shailesh UkeRank #1,917 · 766 reputationPosted May 27, 2015, 5:56 AM EDT
Sakthikumar ThanavelRank #1,235 · 1.4K reputationPosted Jun 1, 2015, 10:04 AM EDT
Muralishankar Sundaram114 reputationPosted Jun 3, 2015, 8:38 PM EDT
Manoj BhoirRank #599 · 4K reputationPosted Jun 3, 2015, 8:52 PM EDT
$(document).ready(function () { if (localStorage.getItem('wasVisited') !== undefined) { $("#test").hide(); } else { localStorage.setItem('wasVisited', 1); $("#test").show(); } });Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 3, 2015, 9:34 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 4, 2015, 1:29 AM EDT
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 4, 2015, 2:02 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts