When I gave an input(text) in the textfield and the text that i input is appearing in TD and then its always gone.
first_name is the userinput
f1 is the td
function ajax_post(){
var fn = document.getElementById("first_name").value;
var table = $("#f1");
table.text(fn);
}
my submit button
<input name="myBtn" type="submit" value="Submit Data" onClick="ajax_post();">
i'm using <form> </form>
i'm wondering that my script is kinda wrong