problem with accessing onclick attribute
What I am trying to achieve, is a button that calls a function that changes the onclick attribute of that button, so that when it is clicked again, it resets the onclick attribute to call the default function. here is what the stripped down code looks like:
for some reason, it only fires once, after which it ceases to work properly.
<input type="button" value="remove" onclick="remove_prep(this);" />
thanks for the help this part of my code is killing me.