hammadshahir
hammadshahir

Reputation: 380

Include hyper link in jQuery

How can I include hyper link for "terms and conditions" in following jQuery function:

 create: function () {
            var pane = $(this).dialog("widget").find(".ui-dialog-buttonpane")
            $("<label class='terms-conditions'><input id='terms-conditions' type='checkbox' onchange='dialogDisable()'/> " +
                "<strong><?= _("I hereby accept the terms and conditions and have read the privacy statement.") ?></strong></label>").prependTo(pane);
            $('#terms-conditions').css('position', 'center');
        },

Upvotes: 0

Views: 45

Answers (1)

hammadshahir
hammadshahir

Reputation: 380

Solution was easy, I don't know why it wasn't working earlier.

<strong><?= _("I hereby accept the <a href='#' target='_blank'><u>terms and conditions</u></a> and have read the privacy statement.") ?></strong>

Upvotes: 1

Related Questions