Tuesday, February 25, 2020

JQuery Hide/Show -while refreshing the page showing the hidden division

Problem : 

        we have given two divs  -
                                  <div id="dashboard">
Dashboard </div> <div id="setting"> Setting </div>

        From these two divisions ... I have hidden the setting division by using the following .

                              $("#setting").hide();

       When I fresh the F5 button or refresh the page, the  setting division is showing for some seconds and disappearing.

Solution : 

I have tried many but nothing works.
So I have given written the following.


<div id="dashboard"> Dashboard </div> <div id="setting" style="display:none;"> Setting </div>
                               
After writing the style to setting div , then code is working properly.


   

No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...