I need show selection id by js, by this code only show 1 and first select id
my code is this html and javascript
4条回答 情书的邮戳 (楼主) 2021-01-26 05:46 $(document).ready(function() { $('.jens_id').change(function() { statteId = $('option:selected', this).text() alert(statteId); }); }); 1 2 3 4 ID should be unique, use class and use this context to tell the current changed select 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
$(document).ready(function() { $('.jens_id').change(function() { statteId = $('option:selected', this).text() alert(statteId); }); });
1 2 3 4