When developing a Windows Vista/7 Gadget, and putting out text using addTextObject(), this works:
var mytext = "Hello";
document.getElementById("background").addTextObject(mytext , "Verdana", 11, "white", 10, 10);
But I cant get this jQuery selector into a variable to work:
var mytext = $("#myid").text();
document.getElementById("background").addTextObject(mytext , "Verdana", 11, "white", 10, 10);
It doesn't work, it only writes an empty string. Why?