This is a migrated thread and some comments may be shown as answers.
jQuery and EmptyMessage attribute
1 Answer 20 Views
This is a migrated thread and some comments may be shown as answers.
keymmachine
Top achievements
Rank 1
keymmachine asked on 11 Oct 2010, 08:44 PM
Hello,

I'm trying to fill a RadInput that has an EmptyMessage with jquery but the field keeps the EmptyMessage formatting (gray)(see attachement). Is there a way to do this?

Input code
<asp:CheckBox ID="Copy" ClientIDMode="Static" runat="server" Text="Copy"  />
<telerik:RadTextBox ID="PHText" ClientIdMode="Static" EmptyMessage="optional" runat="server" MaxLength="10" />

JQuery code
$(function () {
        $('#Copy').click(function () {
            if ($(this).is(':checked')) {
                $telerik.$('#PHText_text').val('hello world');
            } else {
                $telerik.$('#PHText_text').val('');
            }
        });
    });

1 Answer, 1 is accepted

Sort by
0
keymmachine
Top achievements
Rank 1
answered on 11 Oct 2010, 10:28 PM
I figured this out.  I needed to use the set_value client side functions.
Tags
Input
Asked by
keymmachine
Top achievements
Rank 1
Answers by
keymmachine
Top achievements
Rank 1
Share this question
or