This article will show you how to reverse the html p tags in a page with jQUERY.
1) Like always, you insert this code <script src=”http://code.jquery.com/jquery-latest.js”></script> within the html <head> tags.
2) Then also within the html <head> tags, you insert this code which will reverseĀ the html p tags within that page.
<script type=”text/javascript”>
$(document).ready(function(){
var money=$.makeArray(document.getElementsByTagName(“p”));
money.reverse();
$(money).appendTo(document.body);
});
</script>
3) Finally within the body tags, enter this line of code
<p>Make</p>
<p>Money</p>
<p>Online</p>
//After you have loaded the page, the output will be : Online Money Make!
Next Page :
How to use Java Scanner ClassThis article will show you how to use Java Scanner Class with simple Java code.
Show text on JFrame with Java programShow text on JFrame with Java program!
The if…else statement in Java program‘The if…else statement in Java program’ article will show you an example to use the statement.
Java Scanner ClassJava Scanner class tutorial will show you how to create an instance of the scanner class and read in the input from the user then print out the sum of those inputs.
Creating and Using Interfaces in Java ProgramCreating and Using Interfaces in Java Program will show you how to write simple java program using Interfaces.
Create a simple Java methodAn article about how to create a simple Java method.
