Results 1 to 6 of 6
Thread: Jquery append()
Hybrid View
-
16th December 2011 13:42 #1Registered User
Join Date: Sep:2009
Location: Plovdiv
Posts: 110
Jquery append()
, HTML append() , html() ( )
HTML ....
... DOM append() html() HTML DOM ...
HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title>Js_append_and_selectors</title> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div> <p>safsgf</p> </div> <input type="submit" name="" value=" add " /> <script type="text/javascript"> $(document).ready(function(){ $("p").click(function(){ alert('selector work'); }); $("input").click(function(){ $('div').append('<p>test</p>') }); }); </script> </body> </html>
... .live() .delegate() ...
-
16th December 2011 14:05 #2
. . event-, bind- (onclick ) - . , . bind- .
.live() . 1.7 deprecated, .on() .delegate(), ., !
-
16th December 2011 14:13 #3Registered User
Join Date: Sep:2009
Location: Plovdiv
Posts: 110
...
... , Js (... , , : " " .... )
-
20th December 2011 09:48 #4Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
-
22nd December 2011 13:17 #5Registered User
Join Date: May:2006
Location:
Posts: 729
- reference/tutorial JavaScript https://developer.mozilla.org/en/JavaScript/Guide.
- , http://www.youtube.com/watch?v=hQVTIJBZook .
jQuery, stackoverflow.com .
-
23rd December 2011 22:39 #6




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in