Category Archives: jQuery

The Difference Between jQuery’s .bind(), .live(), and .delegate()

The Difference Between jQuery’s .bind(), .live(), and .delegate() The difference between .bind(), .live(), and .delegate() is not always apparent. Having a clear understanding of all the differences, though, will help us write more concise code and prevent bugs from popping up in our interactive applications. by Steve Schwartz Never knew about .delegate() before! Will have [...]

Posted in jQuery | Comments closed

Just because you can, doesn’t mean you should

Time is critical for users. Web pages should be fast and responsive. jQuery has come along and helped the explosion of javascript usage in the web. I love it. It’s great to use and gives me a lot of power in web development. But it can be a burden.

Also posted in thoughts, web development | Comments closed

jQuery – Selecting option in list

I thought this was going to be a difficult one; turns out I was wrong. If you want to programmatically select an option in a select element all you have to do is change the value. This does require you to know the options in the list of course. Tweet

Also posted in programming | Comments closed

Simple javascript abstraction

Abstraction is great. They allow reuse of code which ultimately means less for you to write! I found that with javascript I never really abstracted things out. This meant a lot of re-use of the same thing. Not a very smart move. A simple example is where we abstract an ajax request. This is used [...]

Also posted in programming, web development | Tagged , , | Comments closed

How to remove a checked radio input

Here’s some example code I’ve written that will clear radio button that is checked on page load. Tweet

Also posted in web development | Comments closed

jQuery Tips and Tricks

Something I do from time to time is go to Stackoverflow or Stackexchange pick a tag and look at the highest voted questions. It’s very likely you’re find out the key pieces of information on that topic right there. jQuery Tips and Tricks is definitely one to check out. There’s plenty in there so definitely [...]

Also posted in link, programming | Comments closed

jQuery – Getting two clicks for one

In my time with jQuery I’ve run across occasions where an event gets called twice instead of once. This is really annoying if you’re doing a click event which toggles two states. The reason this happens is the event appears to bind twice. Hence you’ll get the double execution. There’s a simple way to resolve [...]

Also posted in annoyances, programming | Tagged , , | Comments closed

Page optimized by WP Minify WordPress Plugin