1  radio的使用

   <td   />女
       </td>

 

$(function(){
        $("#sex input[type='radio'] ").click(function(){
            alert($(this).val());
        });
    });

 

 

2 option

 

List<Integer> timeList = new ArrayList<Integer>();

<select  /></option>
                          </s:iterator>
                              </select>&nbsp;&nbsp;年&nbsp;&nbsp;

<select>

 

 

$('#year').change(function(){
            alert($(this).val());
        });

 

3  js写法


<select >${name}</option>
  </s:iterator>
</select>

 

function unitChange(obj){
  alert(obj.value);//获取当前选择对应信息
}

相关文章:

  • 2021-06-29
  • 2021-09-30
  • 2022-01-14
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
相关资源
相似解决方案