I'm working on a project that involves a rather large and unwieldly codebase. Within a jquery draggable widget are several hidden divs that are shown when certain menu buttons are clicked. One of these contains a number of form elements, including inputs and select boxes.
The problem is that clicking on any of these form elements does absolutely nothing. If I add an alert to the onclick event, onmousedown event, or onmouseup event they do fire. However, onfocus events do not fire. I can focus an element by tabbing to it.
My guess was that there was a "preventDefault" or "return false" somewhere causing this, but I've searched through the almost 10,000 lines of JQuery/JS several times and found none that seem to relate to this problem; The codebase is too large to read through line-by-line except as a last ditch effort. I've tried searching many of the suggestions in this thread as well: HTML input fields does not get focus when clicked .
I'm at a loss as to what to try next. I've never seen something like this before. Is there a way to see a list of all events for a given element? I could not find this option in the Chrome or FF inspector. Is there a way in these browsers to have it log all fired events and their results? I tried the following but got back only a keyup or change event (depending on which I clicked on):
console.log($(this).data('events'))
How does one troubleshoot an issue such as this?