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

Setting the name attribute for form elements

2 Answers 71 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ciprian
Top achievements
Rank 1
Ciprian asked on 17 Sep 2008, 07:30 AM
Hello

I am building a custom module for the RadEditor in which allows setting some attributes on the form fields. However setting the name attribute is not working in IE according to this bug: IE name attribute bug, and i can't find any good workaround for this. Seeting the name from the "Properties Inspector" module is working correctly. I want to know how can i do this. Can i know what function is used by the "Properties Inspector" module or what that function contains ?

Thank you

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 18 Sep 2008, 03:49 PM
Hi Ciprian,

You can try the following syntax:

    function SetName()
    {
        oSelect.removeAttribute("name");
        oSelect.removeAttribute("NAME");
        oSelect.setAttribute("NAME", newName);
    }

All the best,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ciprian
Top achievements
Rank 1
answered on 19 Sep 2008, 06:39 AM
Yes, this is working fine, thank you Rumen
Tags
Editor
Asked by
Ciprian
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ciprian
Top achievements
Rank 1
Share this question
or