Timeline for answer to JavaScript: Function not running by Buck Doyle
Current License: CC BY-SA 3.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 9, 2014 at 0:57 | comment | added | Buck Doyle | (Which you can verify on your own Fiddle by filling in the fields and still getting the empty alert) | |
| May 9, 2014 at 0:57 | comment | added | user1400803 | Would also like to know why innerHTML? .value makes more sense to me. | |
| May 9, 2014 at 0:54 | comment | added | Buck Doyle |
Why? value is specifically for reading the value of a field, innerHTML is a general way to access the contents of an element. An input field with a value filled in still won’t have anything in innerHTML.
|
|
| May 9, 2014 at 0:52 | vote | accept | Community Bot | ||
| May 9, 2014 at 0:52 | comment | added | Petro | Actually .innerHTML.length < 1 would be better than value | |
| May 9, 2014 at 0:49 | history | edited | Lee Taylor | CC BY-SA 3.0 |
added 17 characters in body
|
| May 9, 2014 at 0:43 | history | answered | Buck Doyle | CC BY-SA 3.0 |