Beginner

JavaScript-Equivalent jQuery Code for Simple Tasks

Introduction There are developers who love jQuery and there are some who hate jQuery. The benefits of using jQuery now are debatable, but there was a time when solving the cross-browser issue was a nightmare and using JavaScript was painful. If you had been through that phase, you might understand the importance of jQuery. jQuery […]
Read the rest of this entry »

Using jQuery to Delete All Inline HTML Styling

Inline HTML styling (when the style attributes for a particular element are written within the HTML tag) is not something that's considered a best practice when it comes to HTML and CSS, and it's becoming less and less common. You don't often come across inline styling unless a site's code hasn't been touched since the […]
Read the rest of this entry »

How to Use jQuery to Dynamically Open Links in New Tabs

Even if you're a new or beginning developer, you probably know that you can easily make links open in new tabs by using the target attribute with your anchor tags. To make a link open in a new tab, all it takes is to make your HTML look like this: <a href="/link/" target="_blank"></a> The target="_blank" […]
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 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 »

How to Verify User Age with jQuery Code

If you've ever visited a site that's selling a product that has certain age restrictions (for example, a site selling or representing an alcohol brand might prompt you to verify that you're over 21 before you're allowed access to the site), you might have come into contact with an age verification form. It turns out, […]
Read the rest of this entry »

Responsive Menu
Add more content here...