hyperlink - dont want it to move to top of page

Posted on 2011-04-26
Last Modified: 2012-08-14

I am showing rows of records.
I want to be able to click on a hyperlinked edit image for a particular row and want the row to be changed to a form entry via ajax. I am encountering it such that the row changed to a form entry but the page goes to the top... I had to scroll down back to the row in order to do editing.

Is it possible to do it such that it will not move up to the top but rather remain at that row and if possible to set focus on a edited field?

what sort of <a href.. type of coding should I use to prevent moving to top?

Question by:LimMH
    LVL 22

    Accepted Solution

    You can use the below
    <a href="#" onclick="return false;">Will Not Move Up</a>

    Open in new window


    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now