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

Separit Captcha textboxlabel from Captchatextbox

2 Answers 79 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
DevMohamed
Top achievements
Rank 1
DevMohamed asked on 27 Nov 2014, 10:32 AM
Hello there

i want to move and control position of textboxlabel under its textbox without effect the lay out of the Captcha its self like attached file

2 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 02 Dec 2014, 08:12 AM
Hello,

You can reference the client-side object of RadCaptcha via the $find method
var captcha = $find("<%=RadCaptcha1.ClientID %>");
then use the get_textBox() and textBoxLabel() methods of this object to retrieve the elements of the textbox and the textbox label:
var captchaTextBox = captcha.get_textBox();
var captchaTextBoxLabel = captcha.textBoxLabel();

After this is done you can use these elements to manipulate their styles and postilion in the DOM as required in your scenario.

Regards,
Slav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
DevMohamed
Top achievements
Rank 1
answered on 03 Dec 2014, 12:29 PM
Dear Slav

Thanks for your replay 

i have discover the solution it so simple just add </br></br> to the Label Text like this :

CaptchaTextBoxLabel="</br></br>أدخل الرمز المرئي دون مراعاة حالة الأحرف"
Tags
Captcha
Asked by
DevMohamed
Top achievements
Rank 1
Answers by
Slav
Telerik team
DevMohamed
Top achievements
Rank 1
Share this question
or