<tr>
<td>
<label><i>*</i> 发票需求:</label>
<select />
</td>
</tr>

chrome下不支持select里面的option单击事件!

故只有改成select的change事件。

下面这种:

$(function(){

        $('#iNeed').change(function(){
            if($('#iNeed option:selected').attr('id') == '1'){
                $(this).closest('td').siblings().hide();
            }else{
                $(this).closest('td').siblings().show();
            }
            
        }); 
    })    

 

相关文章:

  • 2022-03-01
  • 2021-09-26
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案