I have the following code:
<div class="modal-footer">
<a class="btn btn-primary" onclick="saveChanges ();">Save changes</a>
</div>
<script type="text/javascript">
$(document).ready(function() {
function saveChanges () {
tinyMCE.triggerSave();
}
...
...
I'm not sure why but when I click on the "Save changes" link then nothing happens and it does not seem to call the saveChanges
function.
Is there a way that I could remove the onClick
event from the link and just have it so that the saveChanges()
functionality is attached to the clicking of the link with jQuery
?