Response title
This is preview!




It will try to run any widget that is provided with a data-role if the name starts with "widget" - this solves the problem with supplying a name that is an existing method that we don't want to be called this way.
There is a common case as follows:
$elem=$('someselector');
if($elem.length==0){
$elem=$('otherselector');
}This can be changed to a simple statement:
$elem=$('someselector').or('otherselector'); © 2012 jQuery Foundation
Sponsored by
and others.
