Timeline for Block an action from executing via Javascript Function
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 11, 2016 at 13:01 | vote | accept | CommunityBot | ||
Nov 11, 2016 at 12:58 | comment | added | Eric | Try removing the alert. | |
Nov 11, 2016 at 12:56 | answer | added | Saran Dev | timeline score: -1 | |
Nov 11, 2016 at 12:54 | history | edited | user24634 | CC BY-SA 3.0 |
added 336 characters in body
|
Nov 11, 2016 at 12:43 | comment | added | Eric |
See my answer. You are forgetting the return part in the onClick
|
|
Nov 11, 2016 at 12:41 | answer | added | Eric | timeline score: 0 | |
Nov 11, 2016 at 12:41 | history | edited | user24634 | CC BY-SA 3.0 |
added 71 characters in body
|
Nov 11, 2016 at 12:37 | answer | added | maovrn | timeline score: 0 | |
Nov 11, 2016 at 12:33 | history | edited | user24634 | CC BY-SA 3.0 |
Editing to make clearer
|
Nov 11, 2016 at 12:30 | comment | added | user24634 | @Eric If I put return false; in the onClick attribute it works as expected, but the above code in my OP doesn't work. Am I returning the false wrong somehow? | |
Nov 11, 2016 at 12:17 | comment | added | Eric | Have you tried putting return Vslidation(); in the onclick? Iirc when false it will stop the action | |
Nov 11, 2016 at 12:08 | history | asked | user24634 | CC BY-SA 3.0 |