I’m not quite sure what you are trying to achieve but I’m pretty sure your approach is wrong. Why would you append jQuery code to an element? You should always strive for maximum
separation of content and function and have your scripts in external files. Can you tell us a little more about the context in which you want to use this?