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

how to pass radbutton object in javascript method

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bharat veer
Top achievements
Rank 1
bharat veer asked on 26 Aug 2011, 07:21 PM
i have a telerik radbutton. on its client clicked a javascript method is called.

 <telerik:RadButton ID="btnOk" runat="server"  OnClientClicked="OK_Clicked" Text="Ok">                       
                    </telerik:RadButton>

//Javascript method
 function OK_Clicked()
 {        
//How can i get the the text value of the radbutton on which clientcliked event this method is called.
    }

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 27 Aug 2011, 09:11 AM
Hello,

function OK_Clicked()
 
var  btnOk = $find("<%=btnOk.ClientID %>");
btnOk .set_text("New text ); // set button text
 
var button text =  btnOk get_text() ; // get button text
}


Thanks,
Jayesh Goyani
Tags
General Discussions
Asked by
bharat veer
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or