dongli8466 2018-10-27 05:32
浏览 67

如何在重力形式中创建一个切换按钮,在wordpress中从Open打开到关闭时会冻结?

I'have created a form using gravity forms plugin in WordPress in which I want to have a toggle button like this below:

enter image description here

When the button is set to close it should never get set open. Can any one help me out with this I ' m new to wordpress I dont know how to do it using wordpress and I have an addon of gravity form that is gravity view that must show the output in that view that it is open or closed. Thank You !

  • 写回答

1条回答 默认 最新

  • dtpt75860 2018-10-29 10:43
    关注

    You can disable the button with the following code:

    const btn = document.getElementById('test'); // use your button/input id here
    btn.addEventListener('click', () => {
        if (!btn.disabled) {
            btn.disabled = true;
        }
    });
    
    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改