Hi,
I have been struggling with this for a while now.
I have some dropdowns in the admin panel for a set of data objects that I want to change dynamically. They are for a car selection e.g. Make > Model > Year > Series.
I can access the data for each dropdown using the live function like this:
$( "select#Form_ItemEditForm_MakeID" ).live( "change", function() {
alert( "This works!" );
});
But this only runs when the dropdown is changed. This will be useful when I want to change the other dropdowns but how can I can store the dropdown's options data using Jquery once the ajax load is complete? I can get it to work once if I do a hard refresh of the page but if I navigate using the admin panel tabs the page is loaded via ajax.
Can anyone point me in the right direction?
Thanks.