Hey,
What I want to do is pretty simple, but I am very new to jquery. I can set text to a div by doing
Code:
$("#target").text("This is text");
But what if I want the "This is text" to be replaced by the value currently in a text input? I have tried
Code:
$("#target").text(#input.val());
and variations but it doesn't work..

I can get what I want by doing this (but it's not very nice)
Code:
$("#test_div").text(document.getElementById("search_first_name").value);
What should I use instead?