Inner HTML with input values
问题 have a brief question regarding innerHTML and input values that have been entered. See the brief example below (using jQuery for convenience): http://jsfiddle.net/F7urT/2/ jQuery: jQuery(document).ready(function($) { $('.send').click(function() { alert( $('.content').html() ); return false; }); }); html: <div class="content"> <input type="text" name="input" value="Old Value" /> <input type="button" class="send" value="Send" /> </div> If you edit the input value, then click the 'Send' button