title: Change font type in a div using jquery
body: <p>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</p>
  
  <pre><code>.fontType1{font:"Lucida Handwriting";}    
  .fontType2{font:"Comic Sans MS";}
  </code></pre>
  
  <p>button: </p>
  
  <pre><code>&lt;div id="greet"&gt;&lt;/div&gt;
  &lt;div  title="fontType1" &gt;Lucida&lt;/div&gt;
  &lt;div  title="fontType2" &gt;comic&lt;/div&gt;
  </code></pre>
  
  <p>jquery code:</p>
  
  <pre><code>$("div").click(function (){
      $("#greet").removeClass(font);
      var font = $(this).attr("title");
      $("#greet").addClass(font);
  });
  </code></pre>
  
  <p>help please...</p>