我有一个jQuery函数,它由<select>标记中选择的值的“change”事件执行。但是现在我不需要<select>了,因为我将在jQuery函数中强制这个值。我的jQuery函数:$('#maxRows').on('change', function(){ //Event who need to
我使用下面的函数添加CSS类(蓝色、红色、粉红色.)在DIV .container中,从select #selcolor。是否可以在具有不同ID的其他选择标记中使用相同的函数?function select_changed() { var selected = jQuery-- This is HTML --