copy content from a form field to another with jquery

copy content from a form field to another with jquery

hi queries...i use a from in wordpress (tdo miniform) and in this form i copy the content of a field into another:

      $(document).ready(function(){
               $("input#same").click(function(){
                     if ($("input#same").is(':checked'))
                  {
                     // Checked, copy values
                     $("input#content_title").val($("input#customfields-textfield-1").val());
                  }
                  else
                  {
                     // Clear on uncheck
                     $("input#content_title").val("");
                  }
               });
            });


but when i remove the »check box is clicked«-thing it won't.
i have manually trigger an event - can i do it automaticly?

thanx for reading.