我有一些按照自定义名称选择的选项:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
现在,我想通过id获取每个选择选项:
<select class="amount" name="amount[17379]">
但它不起作用。我哪里错了?
答案 0 :(得分:1)
不用斜杠尝试:
var name_id = 17379 ;
var _selector = 'amount['+name_id+']';
$('select[name="'+_selector+'"]').find...