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
user171717
131 gold badge1 silver badge4 bronze badges
-
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?Flortify– Flortify2014年05月10日 00:55:56 +00:00Commented May 10, 2014 at 0:55
1 Answer 1
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
Barmar
789k57 gold badges555 silver badges669 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-js