问题
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.
Old forms:
New forms:
回答1:
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" >
回答2:
Try pressing Ctrl+U when on the Google Website. In Firefox this will show up the complete HTML Code where you can search better. There has to be set an Id, because otherwise the text in the element couldn't be accessed
来源:https://stackoverflow.com/questions/35793303/how-to-get-element-id-in-google-forms