The Salty Economist

Things I Should Have Learned in High School
posts - 56, comments - 0, trackbacks - 0

December 2018 Blog Posts

Just Check It

So, I spent half a day trying to figure out why my checkboxes on a web page were not working, meaning not 'Checkable' The quick and dirty answer is that, I had added an onclick event handler to the checkox like: checkBox.setAttribute("onclick", "updateMe(this);return false;"); My mistake is in adding the 'return false' statement to the handler. Why did I add it anyway? Well, I had copied the handler code from when I added a handler to a button. When added to an onclick event on a button, 'return false;' stops allows my onclick code to run, but then stops the...

posted @ Tuesday, December 4, 2018 10:46 AM |

Powered by:
Powered By Subtext Powered By ASP.NET