Timeline for jQuery nested functions
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 22, 2016 at 1:28 | review | Close votes | |||
| Jan 26, 2016 at 0:00 | |||||
| Jan 22, 2016 at 1:27 | comment | added | Barmar |
In addition to the typo, your design is suspicious. It's almost always wrong to declare one event handler inside another. Every time you click on recordInput, it's going to add an additional click handler to displayInput, so the second function will run multiple times when you click on it.
|
|
| S Jan 22, 2016 at 1:25 | history | edited | Barmar | CC BY-SA 3.0 |
improved formatting
|
| S Jan 22, 2016 at 1:25 | history | suggested | ByteNudger | CC BY-SA 3.0 |
improved formatting
|
| Jan 22, 2016 at 1:01 | answer | added | Tᴀʀᴇǫ Mᴀʜᴍᴏᴏᴅ | timeline score: 1 | |
| Jan 22, 2016 at 0:55 | answer | added | StackSlave | timeline score: 0 | |
| Jan 22, 2016 at 0:54 | review | Suggested edits | |||
| S Jan 22, 2016 at 1:25 | |||||
| Jan 22, 2016 at 0:54 | comment | added | Jordan Schnur |
Like stated above you used a & instead of a $. Please check your console before posting.
|
|
| Jan 22, 2016 at 0:52 | comment | added | Tᴀʀᴇǫ Mᴀʜᴍᴏᴏᴅ |
Replace & with $ in the nested one.
|
|
| Jan 22, 2016 at 0:51 | comment | added | James J. Hill | Did you mean $('#displayInput') ? | |
| Jan 22, 2016 at 0:50 | review | First posts | |||
| Jan 22, 2016 at 0:54 | |||||
| Jan 22, 2016 at 0:47 | history | asked | cmoody4 | CC BY-SA 3.0 |