hi i try to change the font type in a div. where there are 2 button of which user can change the font type. the font type option is in css
.fontType1{font:"Lucida Handwriting";}
.fontType2{font:"Comic Sans MS";}
button:
<div id="greet"></div>
<div title="fontType1" >Lucida</div>
<div title="fontType2" >comic</div>
jquery code:
$("div").click(function (){
$("#greet").removeClass(font);
var font = $(this).attr("title");
$("#greet").addClass(font);
});
help please...