日期:2014-05-16 浏览次数:20406 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style> * { margin: 0px; } </style> <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function($) { var sss; $("input:text").blur(function(event) { sss = $(this).val(); }); $("#Button1").click(function(event) { alert(sss); }); }); </script> </head> <body> <input id="Text1" type="text" /> <input id="Text2" type="text" /> <input id="Text3" type="text" /> <input id="Button1" type="button" value="button" /> </body> </html>
------解决方案--------------------