jQuery.remove() not working as expected (?)
Having read the documentation for the remove-function at http://api.jquery.com/remove/, was under the impression that the following code would work. 

If I have an input element like this:

    <input id="hiddenRatings" name="languageRatings" type="hidden" value="{5, 3, 2, , , {5, 3, 4, , , {5, 3, 2}}}"/>

I thought I would be able to remove it simply by doing

    $().ready(function() {
       $('#hiddenRatings').remove();
    });

But nothing happens, my input element remains. What am I doing wrong? 
jQuery.remove() not working as expected (?)
===

Having read the documentation for the remove-function at http://api.jquery.com/remove/, was under the impression that the following code would work. 

If I have an input element like this:

    <input id="hiddenRatings" name="languageRatings" type="hidden" value="{5, 3, 2, , , {5, 3, 4, , , {5, 3, 2}}}"/>

I thought I would be able to remove it simply by doing

    $().ready(function() {
       $('#hiddenRatings').remove();
    });

But nothing happens, my input element remains. What am I doing wrong? 