The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Symbol before username problem

Go down

Symbol before username problem Empty Symbol before username problem

Post by Beastly Thu 07 Feb 2013, 13:53

Hi this code that I inputted does not work, I tried to edit it; but to no avail.

Code:
$(function() {
if($('a[href="/u18"] span strong')){
            $('a[href="/u18"] span strong').before('<img src="http://i.imgur.com/PSCCv.png" border="0" />');
    }
});


Can someone please tell me what's wrong with this code and possibly fix it for me?
avatar
Beastly
Forumember

Posts : 49
Reputation : 2
Language : English

Back to top Go down

Symbol before username problem Empty Re: Symbol before username problem

Post by Guest Thu 07 Feb 2013, 13:57

Code:
$(function() {
$('a[href=^"/u18"] span strong').before('<img src="http://i.imgur.com/PSCCv.png" border="0" />');
});
Not use "if (condition) { }"
avatar
Guest
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum