I’m from Cuba, so my english is not so good.
I’m trying call some function when I click the ‘save’ button of my form, but it does it twice. Here is my code. Please help me.
[code]myForm.attachEvent(“onButtonClick”, function (id)
{
if (id == ‘save’)
{
savePageContent();
}
});
function savePageContent()
{
$(‘textarea’).append(‘clicked’);
}[/code]