Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery Can';不要让重置选择工作_Jquery_Forms_Select_Reset_Uniform - Fatal编程技术网

Jquery Can';不要让重置选择工作

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

我正在开发一个网站,在那里我需要重置我的表单,这是用jqueryuniform构建的,但问题是我不能进行任何重置

这是我的头代码:

$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'
});
来源:

应该是“重置选择器”还是“重置选择”???