0

How can I change the text "Previous" to an image element?

href:"#",title:"Previous",text:"Previous"}).appendTo(n);

Basically it is a image slider and these are the navigation text elements "Previous" and "Next"

http://i58.tinypic.com/2502jvn.png

asked May 10, 2014 at 0:51
1
  • 3
    @User What is that? It sort of looks like JavaScript, but it obviously got mangled somewhere along the line – the parentheses aren't even balanced. Can you elaborate? Commented May 10, 2014 at 0:55

1 Answer 1

2

I'm guessing on what got lost in the copying. Here's what I think you need:

$('<a>', { href: "#",
 title: "Previous"
 html: '<img alt="Previous", src="/images/previous.jpg">' }).appendTo(n);
answered May 10, 2014 at 1:04
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.