
Originally Posted by
Jeanco
Hello,
Any ideas on how to keep it on the same spot on the page while still executing the code?
The problem is likely in how you call the code. If you are doing it in a link's onclick event you have to suppress the link's normal function.
Try doing something like this:
Code:
<a href="#" onclick="changeOrderDetail('guys'); return false">link</a>
Or make changeOrderDetail return false and then just use:
Code:
<a href="#" onclick="return changeOrderDetail('guys')">link</a>
Bookmarks