Jquery Can';不要让重置选择工作
我正在开发一个网站,在那里我需要重置我的表单,这是用jqueryuniform构建的,但问题是我不能进行任何重置 这是我的头代码:Jquery Can';不要让重置选择工作,jquery,forms,select,reset,uniform,Jquery,Forms,Select,Reset,Uniform,我正在开发一个网站,在那里我需要重置我的表单,这是用jqueryuniform构建的,但问题是我不能进行任何重置 这是我的头代码: $j(function() { // Binds all buttons and events $j('#changecountry').click(countryPopup); $j('#catalogsearch').click(toggleSearch); $j('#closesearch').click(toggleSea
$j(function()
{
// Binds all buttons and events
$j('#changecountry').click(countryPopup);
$j('#catalogsearch').click(toggleSearch);
$j('#closesearch').click(toggleSearch);
/* Centers content on page according to phone width */
centerContent('.header-links', '.header-links ul');
centerContent('.footer-links', '.footer-links ul');
/* Other instancing */
$j('select').uniform({
resetSelect: '.reset'
});
$j('input[type=radio]').uniform();
$j('input[type=checkbox]').uniform();
activateLinks();
arrow_position();
front_page_accordion();
});
下一部分是如下所示的表单:
<select class="uniform gift-layer" name="cost" id="cost">
<option value="0"><?php echo $this->__('What is your price range?'); ?></option>
<?php foreach($prices as $price) : ?>
<option value="<?php echo $price['value']; ?>"><?php echo $price['label']; ?></option>
<?php endforeach; ?>
</select>
有人能告诉我出了什么事吗
$j('select').uniform({
resetSelector: '.reset'
});
而不是
$j('select').uniform({
resetSelect: '.reset'
});
来源:应该是“重置选择器”还是“重置选择”???