You can use $(':ui-myWidget')
where ui
is your widget's namespace. It is slower than using a class selector like $('.ui-myWidget')
so it is still good practice to add the class when your widget gets created.
jQuery UI does this for all there widgets so you could get each progressbar by either $(':ui-progressbar')
or $('.ui-progressbar')
.
This blog post explains thin in greater depth.