Jump to Main Content
Capabilities
Front-end Development
CRO Web Design
Speed Optimization
Competency
Portfolio
Blog
About
Contact
Search
jQuery
Do something if the hashtag includes this word
This is short snippet that checks whether or not the URL has an appended hashtag and then does something. In this example #comment-123 and 123 being
…
Read more
Add a class to the currently clicked element in a parent
The following code will add a class called active to the list element that is currently clicked. jQuery(function () { jQuery(".remove-bullets li").cli
…
Read more
Truncate and toggle list elements using jQuery
The jQuery: // Details: http://jsfiddle.net/ztKUX/2/ $(document).ready(function(){ $('.ShowHideFullLists').click (ShowHideFullLists); $('.ShowHideFull
…
Read more
Disable an anchor link using jQuery
jQuery('.anchorlink').on('click', function(e) { e.preventDefault(); });
…
Read more
Conditional jQuery based off of media queries
The highlighted media queries are what the script will look for to load any additional jQuery scripts and commands. Change these lines to whatever
…
Read more
Capabilities
Front-end Development
CRO Web Design
Speed Optimization
Competency
Portfolio
Blog
About
Contact