You need to give this way:
function myFunc(foo){
$(foo).val("magic, it works!... NOT");
}
var x = "(myFunc('input[name=\"testme\"]'))";
eval(x);
Combine them inside the ()
. But you need to also consider this. You need to give in No Wrap (body).