ajax document.getElementsByClassName code example
Example: document.getelementsbyclassname equivalent in jquery
$(document).ready(function(){
$('para')[2].css("color","red");
});
$(document).ready(function(){
$('para')[2].css("color","red");
});