TroyGrosfield.com TroyGrosfield.com

Posts Tagged ‘jquery’

Headline

JQuery Sorting by Attribute Value

Author
by Troy Grosfield
Date
April 25th, 2014
Category
Developer
Story

Since jquery objects are “array-like” and not actual arrays,  things like “sort” raise a few questions after inspecting jquery code.  As of jquery 2.1.0 you notice that “sort” isn’t a document method and diving into the source, you’ll see that it’s for internal use only: // For internal use only. // Behaves like an Array’s … read more

Tags
Comments
No Comments »
Headline

Javascript and a Link’s Onclick Event

Author
by Troy Grosfield
Date
September 14th, 2010
Category
Developer
Story

I was given the task of making a link appear selected once it was clicked. This needed to be done with Javascript so I thought I would share this easy snippet. Demo Zoom (click link to see in action): Past 7 days Past 30 days Past 3 months Past 6 months Past year You clicked: … read more

Tags
Comments
No Comments »