Jquery remove is not removing elements
<p>I have made dynamic form with jquery. Everything working just not a remove button.
I don't manage to get it working. I'm pretty sure that solution is very simple and someone can help me. I also have it running on fiddle: <a href="http://jsfiddle.net/tjyEH/1/" rel="nofollow">http://jsfiddle.net/tjyEH/1/</a></p>

<pre><code>&lt;div class="page" data-iscroll id="page"&gt;   
&lt;script type="text/javascript"&gt;

    $('#addTilluft').click(function() {
        id = $('div#select_col select:last').attr('id');
        id = id.substr(id.indexOf("_") + 1);
        id++;
        $('&lt;div style="height: 35px;"&gt;&lt;select name="tilluftRoom[]" id="tilluftRoom_'+ id + '" data-mini="true" data-corners="false"&gt;&lt;option value="val1"&gt;Val 1&lt;/option&gt;&lt;option value="val2"&gt;Val 2&lt;/option&gt;&lt;option value="val3"&gt;Val 3&lt;/option&gt;&lt;/select&gt;&lt;/div&gt;').appendTo('#select_col');
        $('&lt;div style="height: 36px;"&gt;&lt;input id="tilluftValue_' + id + '" name="tilluftValue[]" data-mini="true" data-corners="false"&gt;&lt;/div&gt;').appendTo('#input_col');
        $('&lt;div style="height: 31px;"&gt;&lt;a href="#" id="removeTilluft_'+id+'" onclick="Removetilluft(this.id)" data-role="button" data-icon="delete" data-iconpos="notext"&gt;Delete&lt;/a&gt;&lt;/div&gt;').appendTo('#remove_col');

        $("#tilluftRoom_" + id).selectmenu();
        $("#removeTilluft_" + id).button();
        $("#tilluftValue_" + id).textinput();
        $("#tilluftRoom_" + id).selectmenu('refresh');          
        $("#removeTilluft_" + id).button('refresh');          
        $("#tilluftValue_" + id).textinput('refresh');          

   });


   function Removetilluft(id) { 
       id = id.substr(id.indexOf("_") + 1);

       $('#tilluftRoom_' + id).remove();
       $('#tilluftValue_' + id).remove();
       $('#removeTilluft_' + id).remove();



   };
 &lt;/script&gt;     

               &lt;form action="&lt;?=base_url()?&gt;index.php/welcome/showinput" method="post" data-ajax="false" id="tilluft_form"&gt; 
                  &lt;div id="tilluft"&gt; 
                  &lt;h3&gt;Tilluft&lt;/h3&gt;
                        &lt;div id="select_col" class="ui-block-a"&gt;
                            &lt;div style="height: 35px;"&gt;
                             &lt;select name="tilluftRoom[]" id="tilluftRoom_1" data-mini="true" data-corners="false"&gt;
                                &lt;option value="val1"&gt;Val 1&lt;/option&gt;
                                &lt;option value="val2"&gt;Val 2&lt;/option&gt;
                                &lt;option value="val3"&gt;Val 3&lt;/option&gt;
                                &lt;option value="val4"&gt;Val 4&lt;/option&gt;    
                                &lt;option value="val5"&gt;Test&lt;/option&gt;    
                             &lt;/select&gt; 
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div id="input_col" class="ui-block-b"&gt;
                             &lt;div style="height: 36px;"&gt;
                              &lt;input name="tilluftValue[]" id="tilluftValue_1" data-mini="true" data-corners="false"&gt;
                             &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div id="remove_col" class="ui-block-c" style="width:35px;"&gt;
                             &lt;div style="height: 28px;"&gt;
                              &lt;a href="#" id="removeTilluft_1" onclick="Removetilluft(this.id)"data-role="button" data-icon="delete" data-iconpos="notext"&gt;Delete&lt;/a&gt; 
                             &lt;/div&gt;
                        &lt;/div&gt;

                         &lt;a id="addTilluft"  href="#" data-role="button" data-icon="add" data-mini="true" data-inline="true" data-corners="false"&gt;Add one more&lt;/a&gt; 

                  &lt;/div&gt;


               &lt;/form&gt;   
               &lt;input type="submit" form="tilluft_form" value="Submit Form" data-mini="true" data-inline="true" data-corners="false"/&gt;
          &lt;/div&gt;    
</code></pre>
