jQuery beginner here. I know a lot of jQuery commands have callbacks, so the script won't continue until the command has finished. But can I do something like that with my own function?
Specifically, when a button is clicked on my screen, I want to do a series of things. The first is to call a function called:
...but then I have a bunch of other jQuery commands after that. Can I make savedata(); complete BEFORE all the other commands begin?
$('#iconstext').html('Long Term<br />Goal (12 months)');
$('#titletext').html('Long Term Goal (12 months)');