when using a script with href="#" page jumps to top [solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Nettie
Forum Members
Forum Members
Posts: 53
Joined: Tue Oct 03, 2006 11:42 pm

when using a script with href="#" page jumps to top [solved]

Post by Nettie »

Hello

I'm trying to implement a script on a custom form where i need to use href="#" to make an image appear as a link.

But when I click on it I get sent to the top of the page.

I'm sure there is an easy way around this I just haven't been able to figure it out or find it on the forum.

The script im trying to impement can be seen here:
http://aaronweyenberg.com/90/pretty-che ... ith-jquery

Thanks in advance!
Last edited by Nettie on Thu Feb 09, 2012 9:58 am, edited 2 times in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: when using a script with href="#" page jumps to top

Post by Dr.CSS »

A link to the page, etc., would Help...
User avatar
Nettie
Forum Members
Forum Members
Posts: 53
Joined: Tue Oct 03, 2006 11:42 pm

Re: when using a script with href="#" page jumps to top

Post by Nettie »

That was fast ;)

The page is here. I just pasted the form from the example and inserted it above the form im going to use it on.

http://test.primahost.dk/index.php?side ... -produkter
User avatar
Nettie
Forum Members
Forum Members
Posts: 53
Joined: Tue Oct 03, 2006 11:42 pm

Re: when using a script with href="#" page jumps to top

Post by Nettie »

Never mind - I got it solved. But thank you :)

How do I mark this post as soved?
Post Reply

Return to “Layout and Design (CSS & HTML)”