The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Symbol before username problem

View previous topic View next topic Go down

Symbol before username problem

Post by Beastly on Thu Feb 07, 2013 7:53 am

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?

Beastly
Forumember

Posts : 49
Reputation : 2
Language : English

Back to top Go down

Re: Symbol before username problem

Post by Guest on Thu Feb 07, 2013 7:57 am

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

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top


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