Hi there,
I am trying to change the text label of a button on a simple iPhone web app I am developing. Using this command I have been able to change the text:
buttonToChange.innerHTML = buttonToChange.innerHTML.replace(buttonToChange.textContent,text);
However after executing this line of code the clickhandler associated with this button will not fire when the button is clicked.
Is there anyway to simply change the text of a button without affecting its internal properties?
Many Thanks
I am trying to change the text label of a button on a simple iPhone web app I am developing. Using this command I have been able to change the text:
buttonToChange.innerHTML = buttonToChange.innerHTML.replace(buttonToChange.textContent,text);
However after executing this line of code the clickhandler associated with this button will not fire when the button is clicked.
Is there anyway to simply change the text of a button without affecting its internal properties?
Many Thanks