I have a jQuery function that is triggered onchange like:
$(".option-image select").change(function()
The function changes an image based on a select drop down.
Now I'd like to manipulate the select on load and call the function so the image will change. I've tried with:
$(document).ready(function() {
$("#option-236").children("option[value='57']").prop('selected',true).change()
});
While that does change the select to the correct one, the image is not changed, making me believe that $(".option-image select").change(function()) is not triggered.
Is it possible to do?