jQuery: Javascript throws Error "The operation is insecure" when setting value
<p>I am trying to find a fallback solution for browsers who do not interpret the placeholder attribute for input elements.
I have this simple jQuery Script but it throws an Error </p>

<pre><code>SecurityError: "The operation is insecure.
this.value = val;"
</code></pre>

<p>Here's my script:</p>

<pre><code>$('document').ready(function(){
       $('input').each(function() {
           if ($(this).val() === '' || $(this).val() === undefined) {
               $(this).val($(this).attr('placeholder'));
           }
       });
});
</code></pre>

<p>Anyone any ideas what i can do? Or what i am doing wrong? Or what this error means?
It happens in Firefox, haven't tested it in other Browsers yet.</p>
