多选择选项--我只使用jquery获得单击的值。
$(document).ready(function() {
$("#mySelect").change(function() {
var firstselected = $(':selected', this).val(); //returns first selected in list
var lastselected = $(':selected:last', this).val(); //return last selected in list
aler
当我更改select选项时,它不会更新该值。框内的内容数量必须根据select选项进行更改,但不起作用。提前谢谢。
$(function() {
var all = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz\-=_!#%&'*{},.\/:?\(\)\[\]@\\$\^*+<>~";
var myLength = $("#mySelect option:selected").val();
function randomAll() {