Jquery code for mobile nodes

  • 2020-03-30 01:22:59
  • OfStack

 
//Node movement

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>jquery5</title> 
<script type="text/javascript" src="jquery-1.7.2.js"></script> 
<script type="text/javascript"> 
//Node movement
$(function(){ 
$("ul li:eq(2)").insertAfter("ul li:eq(4)"); 

}); 
</script> 
</head> 
<body> 
<p title="hello world"> What do you think of the training in shengsi park? </p> 
<ul> 
<li title="1"> good </li> 
<li title="2"> Very good </li> 
<li title="3"> Very good </li> 
<li title="4"> Very good </li> 
<li title="5"> Too good </li> 
<li title="6"> Good beyond description </li> 
</ul> 
</body> 
</html> 

Related articles: