Having issue for jquery code

Having issue for jquery code

Hi, ,I am using javascript to append jquery coded to variable. I see the code gets put into a string.

However, ,the code doesn't run. Instead of showing code in the variable it shows [ object objec ]. How can I put it in a variable and still be runnable jquery code? 

It seems like the code isn't at all running but instead got convertet to [ object object ] as a string which doesn't run any of it's code.