V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
lhpshaohan4
V2EX  ›  问与答

[小白求助]checkbox 设置选中状态无效,请大佬帮忙看下

  •  
  •   lhpshaohan4 · 2020-04-03 09:05:32 +08:00 · 1312 次点击
    这是一个创建于 1474 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://www.examcoo.com/editor/do/exam/id/792338

    想在油猴里搞自动答题的工具,现在卡在提交答案这一步,使用网上搜索的 prop("checked",true)这些方法设置均无效,小白没基础实在搞不定,请大家帮忙

    5 条回复    2020-04-03 10:22:16 +08:00
    shintendo
        1
    shintendo  
       2020-04-03 09:20:51 +08:00
    你看到的 checkbox 是画出来的,真实的 checkbox 隐藏了
    lhpshaohan4
        2
    lhpshaohan4  
    OP
       2020-04-03 09:35:34 +08:00
    @shintendo 再请问下是不是 https://img.examcoo.com/1454/js/meditor/main.exam.js 这个生成的,如果想修改选中状态有什么办法吗
    littleylv
        3
    littleylv  
       2020-04-03 10:09:59 +08:00
    你实际上已经修改成功了 ,只是看不到而已。想看到效果,给上层 div 加一个 dijitRadioChecked 样式
    jtwor
        4
    jtwor  
       2020-04-03 10:13:00 +08:00   ❤️ 1
    用点击。。
    lhpshaohan4
        5
    lhpshaohan4  
    OP
       2020-04-03 10:22:16 +08:00
    @jtwor 谢谢,click()有效
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5506 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 07:36 · PVG 15:36 · LAX 00:36 · JFK 03:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.