I didn't go to class today. I set a bell for a simple question. I thought it was correct. I added some elements to a div with jquery append, And the element was correctly written. The append element can also be displayed normally with firebug. However, no matter $ (document). Ready (); or clicking an event with the mouse, elements cannot be used.
Jquery actually providesLive ().
$ ("Input [name = 'insert']").Live("Click", function (){
Alert(%(this%.parent(%.html ());
VaR familyname = $ (this). Parent (). siblings (". spfamilyname"). Children ("input [name = 'familyname']"). Val ();
VaR familydescribe = $ (this). Parent (). siblings (". spfamilydescribe"). Children ("input [name = 'familydescribe']"). Val ();
Alert (familydescribe + familyname );
});
Problem Solving
From: http://hi.baidu.com/cyisi/blog/item/02eeeb16fe56c5dbc2fd78a5.html