select
?? [s??l?kt]
vt. ??; ???
adj
???? select() ??? ???
??: ??? ??? ???? ??? ??? ?? ??? ???? ?? ???? ?????. select() ???? ?? ???? ?????? ?? ???? ??? ? ??? ??? ?????.
select ??? ?? ???: $(selector).select()
??? select ??? ??? ???: $(selector).select(function)
????:
???? | ?? |
?? | ????. ?? ???? ??? ? ??? ??? ?????. |
???? select() ??? ?
<html> <head> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input").select(function(){ $("input").after(" Text marked!"); }); }); </script> </head> <body> <input type="text" name="FirstName" value="Hello World" /> <p>請(qǐng)?jiān)囍x取輸入域中的文本,看看會(huì)發(fā)生什么。</p> </body> </html>
??? ????? ??? "???? ??" ??? ?????