This is a migrated thread and some comments may be shown as answers.

Button with CheckBox where text is url

1 Answer 87 Views
Button
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 17 Oct 2012, 02:37 PM
Hello,

I have a RadButton with which is a CheckBox with text (ButtonType = ToggleButton, ToggleType = CheckBox).
I want that the text is a link. 
Setting the NavigateUrl isn't exactly what I'm looking for since checking will also redirect.

How can I set up the RadButton so that the text is a link but the checkbox is not?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Oct 2012, 04:27 AM
Hello,

Try the following Jquery to achieve your scenario.

JS:
<script type="text/javascript" src="../scripts/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
    var text = "<a href='url'> link </a>";
    $("#RadButton1 .rbText").html(text);
</script>

Thanks,
Princy.
Tags
Button
Asked by
JP
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or