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

Set_Value method Javascript

2 Answers 241 Views
Input
This is a migrated thread and some comments may be shown as answers.
Omlac
Top achievements
Rank 1
Omlac asked on 15 Dec 2008, 12:56 PM
Hie all
does anyone knwo why my just script function isnt pasting text to the radtextbox.
The alert function is displaying strSamComment value perfectly and there are runtime errors, its just not setting the  two values.
function(lngSampleResult,strCommment) 
{
    var Result = $find("<%=tboSampResult.ClientID%>");       
        Result.set_value = lngSampleResult;      
        var Comment = $find("<%=tboSampleComment.ClientID%>");
        Comment.set_value = strSamComment;
        alert(strSamComment);
}

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 15 Dec 2008, 01:07 PM
Hi Omlac,

The correct syntax is

Comment.set_value( strSamComment );


Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Omlac
Top achievements
Rank 1
answered on 16 Dec 2008, 06:21 AM
hiv dimo,
 thank you very much it worked
Tags
Input
Asked by
Omlac
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Omlac
Top achievements
Rank 1
Share this question
or