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?
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?
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.
Thanks Kevin