skySlec
skySlec
``` // $template.find('input, textarea, select').each(function() { $template.find("input:not([type='radio'], [type='checkbox']), textarea, select").each(function() { $(this).val(''); }); if ($inputHidden) { // $(this).val(1); $inputHidden.val(0); } ``` This ?
function _getWidgetOptionsRoot() var _updateAttributes = function(widgetOptions) { // $(widgetOptionsRoot.widgetItem).each(function(index) { $('.' + widgetOptions.widgetContainer).find(widgetOptions.widgetItem).each(function(index) { ...... } } Not too sure about your problem, you can try the above method.