title: How to save file after it had been edited with jquery using php?
body: <p>Here I created a jquery function that gets css-color and creates element with background of css-color: <strong><a href="http://jsfiddle.net/FoxKiD/8USqU/" rel="nofollow">Edit my jsFiddle</a></strong></p>
  
  <h1>html</h1>
  
  <pre><code>&lt;div ID="wrapper"&gt;
      &lt;div ID="addColor"&gt;
          &lt;input type="text" ID="hex"&gt;
          &lt;div ID="color"&gt;Your color&lt;/div&gt;
          &lt;button ID="add"&gt;Add color&lt;/button&gt;
      &lt;div CLASS="clear"&gt;&lt;/div&gt; &lt;!-- Clear float --&gt;
      &lt;/div&gt;
  
      &lt;div ID="wrapGallery"&gt;
          &lt;h1&gt;My Color Gallery&lt;/h1&gt;
          &lt;ul ID="gallery"&gt;&lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <h1>js/jquery</h1>
  
  <pre><code>$(function() {
      //float left with some margin
      $('#addColor')
          .children().not('#add, .clear').css({
          'float':'left',
          'margin-right': '5px'
          });
  
      //Showing color on keyup
      $('#hex').keyup(function() {
         var hexCode = $(this).val();
         $('#color').css('background-color', hexCode);
  
          if ( hexCode !== '') {
              $('#color').text('');
          }else{
              $('#color').text('Your color');
          }
  
      });
  
      //Adding colors
      $gallery = $('#gallery');
  
      $('#add').click(function() {
  
          var storedHex = $('#hex').val();
          //check if empty
          if (storedHex == '') {
              alert('Enter something');        
          }
          else {
          //adding li
          $("&lt;li&gt;").css('background-color', storedHex)
                  .hover(
                    function () {
                      $(this).text(storedHex);
                    }, 
                    function () {
                      $(this).text('');
                    })                    
                   .appendTo($gallery); 
          }
      });
  });
  </code></pre>
  
  <p>The only thing I need to do is to save the created elements permanently in the file, so I can access whenever I want. I have no idea how to do that.</p>