jQuery – Playground

jQuery makes playing with the DOM elements so easy and concise that its just not possible to think of any other approach. So as an example, if I wanted to select all  checked radio buttons  with their ids starting with ‘spec’ with value = ‘no’ $(“:input[id^=’spec’][value=’no’]:radio:checked”) For text fields, the usual way to access the […]

Read more "jQuery – Playground"

JQuery – Multi Column Table sorting

JQuery + tablesorter plugin is a nice way of implementing multi column table sorting. All you need to do is include two javascripts in your source code. In rails, I did it like this with minified versions of both the jss: <%= javascript_include_tag “jquery-min” %> <%= javascript_include_tag “jquery.tablesorter.min” %> In plain html, that would resolve […]

Read more "JQuery – Multi Column Table sorting"