Auto set input values
<p>Somewhat a simple question, but i can't get it working.</p>

<p>I want to make a simple checkup to see if the browser supports the placeholder attribute. If they don't i want to set the values if the input fields with jquery.</p>

<p>I'm testing it on firefox now, but can't get it working. I don't get any alert field..</p>

<p>This is what i got and what doesn't work...</p>

<pre><code>
jQuery.each(jQuery.browser, function(i, val){
 if(i=="mozilla" && jQuery.browser.version.substr(0,3)=="1.9"){
  $("input").each(function() {
   alert(this.id);
  });
 }
});
</code></pre>

<p>Tried this as well without a result</p>

<pre><code>
jQuery.each(jQuery.browser, function(i, val){
 if(i=="mozilla" && jQuery.browser.version.substr(0,3)=="1.9"){
  var $inputs = $("form :input");
  $inputs.each(function(el) {
   alert(el.id);
  });
 }
});
</code></pre>
