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

MaskedTextbox set value

1 Answer 135 Views
Input
This is a migrated thread and some comments may be shown as answers.
Vali
Top achievements
Rank 1
Vali asked on 27 Jun 2012, 11:51 AM
Hi,
Can anyone tell me how to change the value of a masked textbox using javascript.
In the previous version I was using the SetValue(value) method but in the Q2 2012 version it doesn't work anymore.

Is there a list of all the new methods anywhere?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Jun 2012, 12:32 PM
Hi Vali,

Try the following code snippet to set value to a RadMaskedTextBox.

JS:
<script type="text/javascript">
    function OnClientClick() {
        var tb = $find("<%= RadMaskedTextBox1.ClientID %>");
        var value = 34;
        tb.set_value(value);
    }
</script>

Please take a look into this documentation for more information about RadMaskedTextBox client-side object.

Hope this helps.

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