//parent
//we can select parent and add class like 3 type that well i know....
//parents
//same like parents we can select any of other parent...
$(document).ready(function(){
$("ul").parent().css({"color":"green"});
});
$(document).ready(function(){
$("li").parent().addClass("ac");
});
$(document).ready(function(){
var span_parent = $("span").parent();
span_parent.addClass("ac");
});
$(document).ready(function(){
var try_new = $("span").parent();
try_new.addClass("dc");
try_new.before("ffdfdfdd")
});
//parentsUntil
//all parents select jisko chahe use select kiye bina
$(document).ready(function(){
$("span").parentsUntil("ul").addClass("parent-until");
});