condensing / simplifying multiple operations

condensing / simplifying multiple operations

Hello jQuery community -
I have the following code, which works great, but i'm looking for any suggestions that could help condense / simplify this code, considering it's essentially doing the same thing, in exception to the different input element + it's associated value.

For clarity's sake, i've highlighted the differentiators in red.

  1. //CLEAR / RESET PRE-DEFINED FORM FIELD VALUES
  2.     $("div#name input").focus(function() {
  3.         if ($(this).val() == "Your name") {
  4.         $(this).val('');
  5.             $(this).css({
  6.             'font-style': 'normal',
  7.             'color': '#333'
  8.             });
  9.         }
  10.     });//End
  11.    
  12.     $("div#email input").focus(function() {
  13.         if ($(this).val() == "Your email") {
  14.         $(this).val('');
  15.             $(this).css({
  16.             'font-style': 'normal',
  17.             'color': '#333'
  18.             });
  19.         }
  20.     });//End