The listview that I have on a multi-page templated page (Services.html) isn't working when it is loaded.
Here's the scenario:
First page loads (index.html) on that page is a listview containing a link to Services.html. Services.html loads when tapped. On Services.html is a multi-page template. The initial page that loads on Services.html has a listview on it that links to the other pages within Services.html. This listview to other pages does not work for some reason?
How come when I write a click() event where the input field (created by the jquery ui combobox widget) is in scope of the selector the event never fires?
I have a form that has a validation which highlights the entire parent <div> of that form field using the css class 'reqFieldGroupEmpty' when the end-user doesn't fill it out correctly.
When a user clicks inside the missed required field I have a click() event remove that class of that form field's parent <div>
However, as I mentioned at the start, the combobox-created <input> isn't triggering the click(), thus not removing the class.
Also, I've been using firebug with a console.log("I've been clicked") message with the click() event function and it does get executed with all of the other inputs in the jQuery selector, just not the ones created by the widget? I've even tried going right to the heart of that input using $('input[role="textbox"].ui-autocomplete-input').click(function () { console.log("I've been clicked") }); and that doesn't work either
It's almost like since the input element was created by the widget it's not getting any of the event handler's bound to it? Is there a way to forcibly bind events to elements if they were created from a script? I should mention I haven't had any luck with live() or on() but I could be implementing them incorrectly. I'm just jQuery 1.7.2.