Is there a开发者_JAVA技巧 way to trigger new extra form adding in django inline form?
I mean, when user clicks "Add new inline", I would like to execute some javascript code in the meantime.
Cheers, Tomek
Yes! You have to use http://api.jquery.com/trigger/ like this:
$('a').click(function(){
$("form:first").trigger("submit");
});
精彩评论