You Might Not Need JQuery – VIDEO

Today I was looking at and how that could apply to SharePoint UI elements.   Check out the video and code samples below.    Often we need to hide simple page elements and can leverage newer browser JS features for common features like selector and forEach.

Enjoy!  shades_smile



You Might Not Need JQuery – VIDEO from Jeff Jones on Vimeo.




Code – HTML

Code – CSS

/* CSS method */
#ctl00_PlaceHolderSearchArea_SmallSearchInputBox1_csr_sbox {
} {
    display: none;

Code – JS

// JS approach -
var elements = document.querySelectorAll('');, function(el, i){ = 'none';
Return to Top ▲Return to Top ▲