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

getAttribute from RadNumericTextBox

3 Answers 87 Views
Input
This is a migrated thread and some comments may be shown as answers.
Derek Hunziker
Top achievements
Rank 1
Derek Hunziker asked on 13 Sep 2008, 07:45 AM
Hey there,

Anyone know how to get a custom attribute from a RadNumericTextBox?  I've tried:

<telerik:RadNumericTextBox ID="RadNumericTextBox0" testAtrb="Hello world" ... 


function ValueChanged(sender, eventArgs) 
     alert(sender.testAtrb); 
     alert(sender.get_element().testAtrb); 
     alert(sender.get_element().getAttribute("testAtrb")); 
         

But no worky :(

3 Answers, 1 is accepted

Sort by
0
Derek Hunziker
Top achievements
Rank 1
answered on 13 Sep 2008, 06:53 PM
Oopsy daisy, I got it now...

var target = document.getElementById(sender.get_element().id + '_text'); 
alert(target.getAttribute('testAtrb')); 

0
Nicolaï
Top achievements
Rank 2
answered on 22 Jul 2010, 12:09 PM
THANKS!!
0
Kavitha
Top achievements
Rank 1
answered on 02 Oct 2012, 03:12 PM
Thanks. It worked for me too !!!
Tags
Input
Asked by
Derek Hunziker
Top achievements
Rank 1
Answers by
Derek Hunziker
Top achievements
Rank 1
Nicolaï
Top achievements
Rank 2
Kavitha
Top achievements
Rank 1
Share this question
or