I wish to automate the population of a page by prefilling form values such as select boxes as well as fire off the change event after the value has been set. However there are at least 3/4 select boxes on one page which need populating automatically.
This works fine for the first element but not for subsequent elements all in one go when use the Trigger method of Jquery.
Can anyone suggest where I am going wrong.
$('#category').trigger('change'); <-- stops here.
The change event on category seems to break the flow and does not pass control back to carry on the order of processing.