I have an index.php file where I have two panel-tab, each one with its own form, inputs and buttons.
Handle all events with jquery in a script.js
file.
Everything was fine with the second panel and its elements until I try to create the event $('#btnGuarda').on('click',function () {})
, which is a button to save the form of the first tabpanel, and I get this error when I click on the button:
jqxcore.js:7 Uncaught Error: Invalid Selector - #jqxgrid! Please, check whether the used ID or CSS Class name is correct.
(# jqxgrid is a grid, but gives the same error later with all the elements of the second form)
Any idea why this error is due?