I want to .append to a div and pass the value on as html using jQuery
I want to pass a hidden <input type=hidden....> append and sending it as .html
$('#here').append(va_lue).html();
Hoping you guys understand now
Thanks
Jean
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OK, it’s still not clear what you are asking, but I think it’s this:
That will add a new
<input>tag to a div whose “id” is “yourDivId”. The input field will be of type “hidden”, and will have whatever name and value you want.If you have a block of HTML for your input field, then you would do something like this (as @psychotik already wrote):