Could anyone tell me why the below code isn't working?
<input type="hidd开发者_如何学Pythonen" name="way" mode="way" value="" />
<input type="button" name="finish" value="Update & Finish" onclick="document.getElementById('way').value='continue'; document.edit_list.submit();" />
I get the error:
Error: document.getElementById("way") is null
name
and id
are different attributes. Your input doesn't have an id
defined.
The element with the name property of "way" also needs an id property.
<input type="hidden" name="way" mode="way" id="way" value="" />
精彩评论