Q:

Swapping the text with the function

I am still a newbie with javascript and I wanted to know how to make it so that the function appears and the text next to that,
What I mean by that is, it is now show loading and next to it the variable text but I what I want is that the variable text is in front of the static 'loading' text
loader.text('Loading '+$(this).text()).show();

Thanks in advance

A:

It might be a good idea for you to check out some beginner Javascript resources. What you're trying to do is very basic, and is called "string concatenation". Best of luck.

