Javascript many calls onselect -


i ashamed ask on line onselect, can't call updatecoords , showpreview. don't know syntax ...

$('#cropbox').jcrop({    aspectratio: 1,   onselect: updatecoords showpreview,   onchange: showpreview  }); 

thanks , pardon french

if functions, call them this:

$('#cropbox').jcrop({   aspectratio: 1,   onselect: function(){       updatecoords();        showpreview();   },   onchange: showpreview }); 

Comments

Popular posts from this blog

java - JavaScript + Thymeleaf - select onchange -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

node.js - Using Node without global install -