This jQuery script will validate your email forms for you. If emails are not valid, it will add text saying […]
Tag: jquery
jQuery: attribute value selector with OR operator
var selected_airlines = [“UN”, “SU”] $(‘#journeys’).find(‘.js-flight-airline’).filter(‘[data-code=”‘+ selected_airlines.join(‘”],[data-code=”‘) +'”]’) // makes the following string for the filter: ‘[data-code=”UN”],[data-code=”SU”]’
Focus Element with jQuery
I thought $(‘#target’).focus(); would work fine Turns out it doesn’t work, seems chrome fires the event too quickly. setTimeout(function(){$(‘#target’).focus();},0); Works […]
I’ve mastered ‘Selectors’ on jQuery Air
I’ve mastered ‘Selectors’ on jQuery Air http://www.codeschool.com/courses/jquery … via @codeschool https://twitter.com/mmednik/status/220680204832608257
jQuery UI Tabs – Handle AJAX failures when loading a page
Playing with large data (e.g. statistics) and displaying this data via an AJAX request, I gathered that users would get […]
Problem loading ajax with Cakephp 2.x
Coding Problem : My page loads are done via ajax and loaded into the div content. Where do I get […]
Load Bootstrap tabs dynamically
Need Bootstrap tabs, but with dynamic content? Use this JS to fetch the content before showing the tab. Works for […]
Responsive carouFredSel stacks on page load
I’m quite proud of this one, but I’d be interested to know if there’s a better way. An issue that […]
Ensure presence of FB JSDK with jQuery $.Deferred object
When I develop Facebook App/Tab, I need to make Facebook JS api call quite often. But sometimes, I might be […]
HTML5 data attribute & javascript
Sometimes we write strings of messages in our javascript code, which isn’t really the best practice and could prove an […]
Check Links all Internal Links Load on a Page
A couple of days ago I was making a bunch of low level changes to a site for work and […]
Retinise your inline images
Almost every retina script I found online resulted in the user downloading both an original image and a retina image. […]
Show post with ajax
Coding Problem : I’m starting to get into jQuery only as I need on my site that a person write […]
focus event.relatedTarget the Firefox way (no way)
If you happen to handle an event via a jQuery focus event handler and wanting to know where the focus […]
Jquery Shortcut
Input elements: .blur(function(){…}) is a shortcut to .bind(‘blur’, function(){…})
Want to reset a form (with) jQuery?
$(“#my_form”).get(0).reset(); No more.
jQuery find every focusable elements
When build accessible websites, you often need to find the first focusable element within a container. To make the code […]
Brevidy, the open source video social network
To any and all who might be interested, I just open sourced Brevidy, a video social network that I created. […]
Submenu Flyout – Elegant Hotspot
Breakdown of some issues with submenu flyouts. Jquery plugin for a classic submenu annoyance. http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown
Using INPUT CHANGE event on IE
On IE the change event behaves in a diferent way. The event only gets fired when the input loses the […]