5
我正在開發一個網站,我需要重置我的表單,它是用jQuery Uniform構建的,但問題是我無法進行任何重置。無法重置選擇作品
這是我標題代碼:
$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>
是否有任何人誰可以告訴我什麼是錯?
它應該是 「resetSelector」 或 「resetSelect」 ??? –