PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Add anchor tag in label

  1. scottshane
    Member

    I have a checkbox that has a label : "I have read and agree to the terms and condition".
    I would like to wrap "terms and conditions" part with and anchor tag so I can trigger a modal with that content. How can I accomplish this?

    Posted 14 years ago on Monday March 22, 2010 | Permalink
  2. you can do this with some jQuery to replace the label text.. something like this.

    <script type="text/javascript">
      jQuery(document).ready(function() {
      	jQuery('#input_x_x label').html('I have read and agree to the <a href="#" name="terms">terms and conditions</a>');
    
      });
    </script>

    just replace the "input_x_x" with your actual input id, etc.

    Posted 14 years ago on Tuesday March 23, 2010 | Permalink
  3. scottshane
    Member

    Thanks Kevin

    Posted 14 years ago on Tuesday March 23, 2010 | Permalink

This topic has been resolved and has been closed to new replies.