title: Placeholder in java Script not running
body: <p>My code in not working properly.
  Could you tell me where is my mistake ? </p>
  
  <p>Here is my code:</p>
  
  <p><strong>HTML Part</strong></p>
  
  <pre><code>&lt;form name="" id="" method=""&gt;
          &lt;fieldset&gt;
              &lt;legend&gt;&lt;strong&gt;My Form&lt;/strong&gt;&lt;/legend&gt;
              &lt;div class=""&gt;
                  &lt;label for="name"&gt;Name:-&lt;/label&gt;
                  &lt;input type="text" value="" id="name" /&gt;
              &lt;/div&gt;
              &lt;div class=""&gt;
                  &lt;label for="email"&gt;Email:-&lt;/label&gt;
                  &lt;input type="text" value="your email" id="email" /&gt;
              &lt;/div&gt;
              &lt;div class=""&gt;
                  &lt;label for="companyId"&gt;Company Name:-&lt;/label&gt;
                  &lt;input type="text" value="" id="companyId" /&gt;
              &lt;/div&gt;
          &lt;/fieldset&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p><strong>Java Script</strong> </p>
  
  <pre><code>var emailField = document.getElementById("email");
          emailField.onfocus = function(){
              if(emailField.value == "your email"){
                  emailField.value =="";
              }
          };
          emailField.onblur = function(){
              if(emailField.value ==""){
                  emailField.value == "your email";
              }
          };
  </code></pre>
  
  <p><strong><a href="http://jsfiddle.net/FE4mt/" rel="nofollow">Jsfiddle Link</a></strong></p>