JQuery DOM element operation

jQuery gets the parent node, the brothers, inserts content in the node.


1 $ (“# test1”). Parent () // Parent Node 2 $ (“# Test1”). Next () / / Next node 3 $ (“# Test1”). Append (‘
  
'); // Insert content in the node. 4 Match to the specified element $ ("# test1"). Parent (). Next (). Find (". Error_INFO");
Summary: When writing JS, We must first determine that JavaScript is also jQuery, because the two ways are different, the method name is different, can't be mixed.


© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment