Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Append text and value using JQuery


rwilson - 6:52 am on Mar 26, 2012 (gmt 0)


I want to wrap each value submitted in <li> tags to create a list below it but I can't figure out how to append the tags and use the value together. Any help would be greatly appreciated

<form id="edit" action="destination.html">
<input id="editInput" type="text" />
<input type="submit" value="Add" />
</form>
<ul id="output" contenteditable="true">

</ul>
</section>



$(function() {

var editText = $('#editInput').val();

$('#edit').submit(function() {
$('#output').append($('#editInput').val());

return false;
});


Thread source:: http://www.webmasterworld.com/javascript/4433354.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com