At the moment I have a function that is changed when you select something in a dropdown box. it all works fine. But I want to also call the same .change function in a different function. Is this even possible and if so, how do I do it? Here is the function I wanna call:
$(document).ready(function(){
$('.action').change(function(){
.....
.....
I hope I provided you with enough information to answer my question, thanks in advance.
function actionChange() { ..... <logic here> .... }and assign that function the the change event$('.action').change(actionChange);and then you can either call the function directly (actionChange()) and it will also be called on the change event