Nice JS and JQuery way to show or hide text


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;