Subscribe: Learning jQuery
http://feeds.feedburner.com/LearningJquery
Added By: Feedage Forager Feedage Grade A rated
Language: English
Tags:
back top  click event  click  disable  element  elements  event  jquery parsejson  jquery  json parse  json  method  parse  scroll 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Learning jQuery

Learning jQuery



Tips, techniques, and tutorials for the jQuery JavaScript library



Last Build Date: Sun, 04 Dec 2016 21:05:46 +0000

 



jQuery.parseJSON vs JSON.parse

Sun, 04 Dec 2016 21:05:46 +0000

JSON.parse() and jQuery.parseJSON(), both are used to parse a JSON string and returns resulting JavaScript value or object described by the string. jQuery.parseJSON() is available only when jQuery library is used where JSON.parse() is JavaScript’s standard built-in JSON object method. So the question is if jQuery library is used, then which one should be used […]



Snippets: Disable Scroll Using jQuery

Sat, 26 Nov 2016 17:24:07 +0000

Most developers probably wouldn’t want to disable scroll on their pages, but of course, there are always exceptions to any rule, and there are a number of reasons that scroll may need to be disabled. It could be for design or functionality reasons, or it could just be the result of a click event or […]



jQuery: Enable Click Event for Some Anchor Elements

Sun, 20 Nov 2016 11:46:25 +0000

jQuery provides a very easy way to disable click events for any DOM element. And you can also disable click event for all Dom elements with few lines of code. But then what if you want to enable click event for some elements? For example, if a click event is disabled for all anchor elements, […]



jQuery’s .attr() Method

Sun, 13 Nov 2016 12:43:09 +0000

In jQuery, the attribute or .attr() method is used to set the attributes values of selected elements. It works similarly to the .css() method, except with .attr(), you're not setting or changing the style rules, but the inline HTML attributes of a particular element. Common HTML attributes that can be altered are width and height, […]



jQuery’s .find() Method

Sun, 06 Nov 2016 18:20:42 +0000

In jQuery, the .find() method is used to return descendent elements of the selected element. Basically, you can use it when you want to apply jQuery to all the descendants of a particular element. You can also do this by selecting them by classes and ids, but sometimes if there are many different classes, ids, […]



jQuery: Showing/Hiding HTML Elements Based on Scroll Position

Mon, 31 Oct 2016 19:01:40 +0000

Showing/hiding any HTML DOM element is a common scenario based on various business requirements. Since the time of SPA (single page application) is evolved, you will find that on scroll position of browser, new elements are shown and previous elements are hidden. There are tons of jQuery plugins available which can show/hide any HTML element […]



Using Method Chaining in jQuery

Sun, 16 Oct 2016 13:54:47 +0000

When you use method chaining in jQuery, it ensures that you never have to use the same selector more than once. Over-using a selector can seriously slow down your code, as every time you call on a selector you're forcing the browser to go looking for it. By combining or "chaining" multiple methods, you can […]



Disable Links with jQuery

Mon, 10 Oct 2016 09:46:16 +0000

jQuery's built in preventDefault() method is a great way to prevent the default functionality of an element from occurring. It's probably most commonly used to disable links. Maybe you want a certain link only to work under certain conditions (like for example, you only want it clicked if the user is on a desktop sized […]



jQuery Prefixes: jQuery vs. $

Sun, 02 Oct 2016 18:35:15 +0000

It's a really common practice in jQuery to use the dollar sign ($) prefix with your methods, like this: $(document).ready(function(){ $(#myDiv).slideUp(); }) The above code would make the div with the ID #myDiv slide up when the page loads. But that's not the only way to write that function. Sometimes you might see it written […]



Create a Simple Back to Top Button with jQuery

Mon, 19 Sep 2016 13:34:11 +0000

We've all seen those handy little "back to top" buttons, the one that usually appear at the bottom of a page once a user starts scrolling that, when clicked, will smoothly return the page back to the top position. Insert the following snippet into your projects to add a back to top button to your […]