Archive for May, 2017

jQuery Snippets: How to Conditionally Enable Submit

One easy way to prevent users from submitting an empty form in a pinch is to conditionally disable the submit button. This might be technically be considered a best practice, but if you're in a rush and don't have the time to write an entire set of validation rules, this is a solution (even if […]
Read the rest of this entry »

7 jQuery Plugins for Mobile Friendly Projects

If you're not designing and coding every single project that you do with mobile in mind, then you're probably doing something wrong. Even if you're not coding mobile first designs, they should at the very least be mobile friendly because, you know, it's 2017 and we're living in an ever-expanding mobile world. Every project you […]
Read the rest of this entry »

How to Use JavaScript to Detect Browser

Wouldn't it be nice if all of our code looked the same and worked the same no matter what browser our users are viewing our projects or web pages on? That's the dream, right? Unfortunately, cross browser compatibility isn't something that a site can achieve without adding some extra code. There a few ways that […]
Read the rest of this entry »

How to Use Google Analytics with jQuery Mobile

jQuery Mobile is an HTML5 based web-page framework that's optimized for touch -- so it's perfect for using to make responsive web pages and websites that will look great and work phenomenally on mobile devices and tablets. The framework is also optimized for performance. It typically has a very fast page load time, because each […]
Read the rest of this entry »

6 Lightweight jQuery Plugins for Fixed Elements

Giving fixed positioning to elements is a great way to keep them visible on the page no matter how much or how far a user scrolls. Fixed positioning can be achieved easily using CSS -- it only takes one line of code to change the position of an element from static or relative to fixed. […]
Read the rest of this entry »

How to Use jQuery’s Mouse Methods

jQuery has 4 event methods that have to do with cursor movement. The methods are .mouseenter(), .mouseleave(), .mouseup() and .mousedown(). All of these methods can be used to trigger events and execute code based on when and where the user's cursor moves. In terms of syntax, they're fairly simple and straightforward to use, but they […]
Read the rest of this entry »