找回密码
 加入
搜索
查看: 2474|回复: 2

[IE类操作] 用那个方法可以获取到复选框被选中了?

[复制链接]
发表于 2014-5-23 14:27:17 | 显示全部楼层 |阅读模式
<td  class="list_body_out" colspan=3  width="89%">
<input type='checkbox' name='cqzcslx' value='1'  onclick='changeqzcslx(0);' class='text_12' >石家庄
<input type='checkbox' name='cqzcslx' value='2'  onclick='changeqzcslx(1);' class='text_12' >邢台
<input type='checkbox' name='cqzcslx' value='3'  onclick='changeqzcslx(2);' class='text_12'>邯郸
<input type='checkbox' name='cqzcslx' value='9'  onclick='changeqzcslx(7);' class='text_12' >其他
<input name='qzcslx' value='' type='hidden'><input name='tccxx' value='' type='hidden'></td>
用什么方法可以获取到选种的复选框啊?
发表于 2014-5-23 15:13:09 | 显示全部楼层
思路混乱中...复选框谁选中的?你要监控他人的操作吗?
 楼主| 发表于 2014-5-23 16:11:26 | 显示全部楼层
回复 2# shqf


    没有的,已经解决了。采用的方法是倒


        $chks=_IETagNameGetCollection($oIE,"input")
       
       
        For $target In $chks

        If $target.checked = True Then
                $a=$target.value
                If $a=1 Then
                        MsgBox(0,"0","扣留机动机")
                ElseIf $a=2 Then
                        MsgBox(0,"0","扣留非机动车")
                ElseIf $a=3 Then
                        MsgBox(0,"0","扣留驾驶证")
                ElseIf $a=4 Then
                        MsgBox(0,"0","扣留行驶证")       
                ElseIf $a=5 Then
                        MsgBox(0,"0","收缴物品")       
                ElseIf $a=6 Then
                        MsgBox(0,"0","拖移机动车")       
                ElseIf $a=7 Then
                        MsgBox(0,"0","检验血液/尿样")
                ElseIf $a=9 Then
                        MsgBox(0,"0","其他")                       
                EndIf
               
        EndIf

        Next
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-4 23:19 , Processed in 0.074048 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表