jSQL

I ran into some cool javascript, hacked together by Matt Hackett. He was disappointed in jQuery because he expected it to be some kind of SQL for javascript. After he discovered what jQuery in fact is, he decided to throw some javascript together, and jSQL was born.

Using jSQL, you can talk to your DOM elements using a SQL-kind of language. For example:

JSQL(‘UPDATE #jsql-example-1 SET checked = true WHERE type = ”checkbox”‘);

Updates every checkbox in the container #jsql-example-1, setting each checkbox checked. This saves you some messing around with jQuery’s each() function. Very cool! Check it out here.