如何在Google表单中获取元素ID [英] How to get element id in google forms
问题描述
我想获取Google表单中某个元素的ID.我在互联网上发现可以通过右键单击元素并打开inspect元素来完成此操作.它适用于旧表单,但是对于新表单,它不显示任何id属性.我要发布检查元素的两个图像.
I want to get the id of an element in google forms. I found on the internet that it can be done by right clicking on the element and opening inspect element. It is working for older forms but, for new forms, it doesn't show any id attribute. I am posting both images of inspect element.
旧表格:
新表格:
推荐答案
在新表单中,google将name属性替换为id.因此,做一件事,在文本框中写一些内容,然后右键单击文本框并打开inspect元素,在这里您会发现具有名称属性的项目标签,这是您想要的键 例如,
In new form google have replace id with name attribute.So do one thing, write something in textbox then rightclick on textbox and open inspect element, Here you will find item tag with name attribute which is the key you want For eg,
<input name="entry.123456" >
这篇关于如何在Google表单中获取元素ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!