I was wondering if it is possible to replace a part of a string with variable.
basically what I want to do is the following
I want to replace [socialnetworks] with the social network code.
the way it gets the code is via $.POST as it has to fetch this from the mysql database via PHP
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace
I don’t know if it’s what you wanted ;).