How to Get the Value of an Element’s Attribute with jQuery using attr()
Last Updated on Wednesday, 13 February 2013 08:35 Written by Richi González Wednesday, 13 February 2013 12:00
Hello,
Lately that I’ve been working a lot with jQuery, I have noticed how easy and small functions get endless possibilities for improving code. In this article, you will learn how to get the value of any attribute of an element with jQuery using attr()
We will imagine we have the following HTML code:
Learn More
Tags: attr, attribute, content, element, get, how to, javascript, jQuery, obtain, retrieve, richi, value | Posted under Programming/Coding | No Comments
How to Get a String’s Length with Javascript
Last Updated on Friday, 8 February 2013 04:29 Written by Richi González Sunday, 10 February 2013 12:00
Hello,
Learn how to get a string’s length with a very simple Javascript property: length. This is really useful when you want to do, for example, field validations with JS; you evaluate the length and then do something.
Learn More
Tags: characters, chars, get, how to, javascript, js, length, obtain, retrieve, string, strlen, total, var, variable | Posted under Programming/Coding | No Comments

Recent Comments