Nice JS and JQuery way to show or hide text

  • 2020-03-30 01:46:13
  • OfStack

Recommended use:
 
$("#id").show(); 
$("#id").hide(); 

Not recommended:
 
document.getElementById( " #id " ).style.display = 'none'; 
document.getElementById("#id"').style.display = 'block'; 

Because there is a problem with setting.style.display to switch between different browsers;

Related articles: