Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有与 javascript 相关的查询,我们调用了一个函数,其中 id 在选择选项标记中。那么我们可以在其他函数中使用这个id进行计算吗?如何获得这个ID?如果是,那怎么办?如果没有那么请给我一些其他的想法..
怎么读这个id?
尽快给我结果。
使用.val(),请参阅这个 jsfiddle 示例。我在这里使用.change()你可能想要使用.submit这个。
.val()
.change()
.submit