Here's my problem.
I have 2 Tabs. First tab I have a button and in the second tab I have a select.
When I click the button with the id="select-"
I want to trigger the change on $('#selector')
. My problem is that the selector still doesn't exist (when I click the tab-content is not loaded yet.
So instead of click I wanted something like when tab-content loads or when tab is active. Any help?
//when select is clicked update parameters on load
$('[id^="select-"]').click(function () {
$('#selector').trigger('change');
});
Edit: no it's not duplicate...