// JavaScript Document $.widget("ui.form",{ _init:function(){ var object = this; var form = this.element; var inputs = form.find("input , select ,textarea"); form.find("fieldset").addClass("ui-widget-content"); form.find("legend").addClass("ui-widget-header ui-corner-all"); form.addClass("ui-widget"); $jqPm.each(inputs,function(){ $jqPm(this).addClass('ui-state-default ui-corner-all'); $jqPm(this).wrap("