jQuery character replacement call activated on click
<p>I have this jquery function to automatically replace sertain characters with others:</p>

<pre><code>jQuery(function() {
    jQuery('.textarea').keyup(function() {

    jQuery(this).val(jQuery(this).val().replace(/A/g, "5"));
    jQuery(this).val(jQuery(this).val().replace(/Q/g, "3"));

    });
});
</code></pre>

<p>I want to make this function optional and only activated if the user clicks on a button next the text-area input form.</p>

<p>I'm trying something like this:</p>

<pre><code>$("a").toggle(
  function () {

        jQuery(function() {
            jQuery('.tifibox').keyup(function() {

            jQuery(this).val(jQuery(this).val().replace(/A/g, "3"));
            jQuery(this).val(jQuery(this).val().replace(/Q/g, "5"));

            });
        });

    $(this).addClass("selected"); // button selected
  },
  function () {
    $(this).removeClass("selected");
  }
);
</code></pre>

<p>I have not tested this yet.. but is that correct? thanks</p>
