Moving DOM Element
ការផ្លាស់​ប្តូរ​ទីតាំង​បណ្តា​ធាតុ HTML ទាំងឡាយ​នៅ​លើ​ផ្ទៃ browser ក៏​អាច​ត្រូវ​ធ្វើ​ឡើង ដោយ​ប្រើប្រាស់​វិធី​ឈ្មោះ append(), prepend(), before(), after() នៅ​ក្នុង​កញ្ចប់ jQuery បាន​ដែរ​។ ពិនិត្យ​កម្មវិធី​ខាង​ក្រោម​នេះ៖
<!DOCTYPE html>
<html>
  <head>
    
    
  </head>
  <body style="font:14px/1.5 'Odor Mean Chey'">
  
	

This is the first paragraph.

This is the second paragraph.

<script> function appendText() { $("body").append($("#p1")); } </script> </body> </html>

This is the first paragraph.

This is the second paragraph.


<!DOCTYPE html>
<html>
  <head>
    
    
  </head>
  <body style="font:14px/1.5 'Odor Mean Chey'">
  
	

This is the first paragraph.

This is the second paragraph.

<script> function prependText() { $("body").prepend($("#p2")); } </script> </body> </html>

This is the first paragraph.

This is the second paragraph.