Find the value of an input box.
<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input").keyup(function () { var value = $(this).val(); $("p").text(value); }).keyup(); }); </script> <style> .selected { color:red; } .highlight { background:yellow; } </style> </head> <body> <body> <input type="text" value="some text"/> <p></p> </body> </html> </html>