I have a datalist box that looks like this:
<td>
<input list=screens.screenid-datalist type=text id=screens.screenid onblur=validate('0','0','jacques')>
<datalist id=screens.screenid-datalist>
<option value=Login></option>
<option value=ScreenCreator></option>
</datalist>
<label id=val-screens.screenid class=Label_Error style=visibility: hidden;>*</label>
</td>
and I have a JavaScript code which has to get the value from this datalist.
I tried all the following things to get the value
document.getElementById('screens.screenid').value
document.getElementById('screens.screenid').text
document.getElementById('screens.screenid').innerHTML
document.getElementById('screens.screenid').option
and it just does not seem to work.
Is there something wrong with my JavaScript or with my HTML code?
when I use the console to get the value: