This allows me to have a default option (dataType: json) and add options in the data-ajaxify-options attribute of every particular form, like this (for example):
This works fine. However, now I want to add a success callback like this. But, the attribute data-ajaxify-options needs to be valid json for the .data() function to work, and the value for success should be a function, which is not possible in json, right?
Is there any way to do what I want?