If you have a Google account, you can save this code to your Google Drive.
Google will ask you to confirm Google Drive access.
Save file as:
If you have saved a file to Google Drive, you can open it here:
Click the button to get the number of option elements in the datalist.
Note: The input element's list attribute is used to bind it together with the datalist element.
Note: The datalist element is not supported in Internet Explorer 9 and earlier versions, or in Safari.