Tag Archives: js

How to select all anchors with display block jquery

snippets

How to select all anchors with display block jquery Very often or not, you need to select all the elements from within the DOM, that have their display property set to “block”. Solution

Filter function from jQuery to the rescue. Description: Reduce the set of matched elements to those that match the selector or pass

Disable jqueryui calendar days EXCEPT the mondays of every week

datepicker

Disable jqueryui calendar days EXCEPT the mondays of every week Let’s say you want the user to be able to see all days from within the month, but to be able to select only the mondays of every week.

Here is a DEMO. You can disable all “Sundays” by switching from “day == 1”

How to redirect URL in Javascript or jQuery

snippets

How to redirect URL in Javascript or jQuery I will present some ways to redirect the user to another page from the client side using only plain javascript. 1) Using window.location.href you obtain a similar behavior  as an HTTP redirect

2) Using window.location.replace

window.location.href VS window.location.replace It is better than using window.location.href, because replace() does not put

Change value of selectbox in Zurb Foundation via JavaScript

snippets

Change value of selectbox in Zurb Foundation via JavaScript Some of us tried to change or will have to change via javascript a select-box that is generated from the custom forms of Zurb Foundation  framework. You noticed or you will notice that it is not as simple as changing a default html select-box. Why ?

jQuery DOM Attributes tutorial

jquery_logo

jQuery DOM Attributes In the previous chapters we talked about jquery selectors and we learned that they are coming from css world. We selected elements that were available in the DOM that can be manipulated in all kinds of ways. In this tutorial we will go further and we will talk about DOM attributes. We can manipulate

jQuery Selectors tutorial

jquery_logo

jQuery selectors As I promised, I will write a series of jquery tutorials starting from beginner to advanced, so the first episode of these series will be about jquery selectors. What are jquery selectors ? jQuery selectors are one of the most important aspects of the jQuery library. These selectors use familiar CSS syntax to

Using Javascript eval function

Javascript eval function Long, long in the past, I was trying to obtain a logical expression from some different variables and concatenate them into one single variable, to use that further for a jQuery plugin. Everything looked great when running console.log(myVar), but then the problem came. In my mind, I didn’t thought that the result would

Request an article ←