Thursday, November 22, 2012

jQuery UI widget pseudo-selectors

I stumbled across a very handy feature from jQuery UI today - widget pseudo-selectors. This page describes the feature well, but I have copied a common scenario here:
$.widget('ui.mywidget',{});
$(':ui-mywidget') //find all ui.mywidget instances

0 comments:

Post a Comment