jQuery get browser width including scrollBar

Posted by Damodar Bashyal on September 06, 2013


First Check if scrollbar is on:

if($(document).height() > $(window).height()){... srcollbar is on ...}

Now lets create a function to find the width of the scrollbar:


Adding Menu separator Bars with jQuery.

Posted by Damodar Bashyal on April 30, 2012


I had a website whose menu items were loaded from different file blocks and cms static blocks. So, I decided to use jQuery for this purpose. So here is my menu.


Javascript function to check and uncheck all checkboxes.

Posted by Damodar Bashyal on April 21, 2012


Today I was filling one online form with 100 plus checkboxes, after checking 4-5 boxes, felt bored. So, wrote a simple javascript function and ran it through firefox's firebug console and checked all boxes with just one click on run.

I had a simple one with no if conditions, but decided to make it better so i could use it on my websites. So here you go, a very simple JS check and uncheck all checkboxes functions. Just one function handles both options.