Hello!
I want to find control using javascript function. Im using code below:
Control with ID = "AttributeID333_6" exist, so I have no idea why I get null :/
Is it possible to find control dynamicly?
Have a nice day
Kamil
I want to find control using javascript function. Im using code below:
function
ChangeComboStyle(sender, eventArgs) {
var
strId = sender.get_id();
strId = strId.slice(27); <- I get AttributeID332_6
var
splitVar = strId.split(
"_"
);
var
newId = parseInt(splitVar[0]) + 1;
var
newAttribute =
"AttributeID"
+ newId.toString() +
"_"
+ splitVar[1]; <- now I have AttributeID333_6
var
numer = $find(newAttribute); <- numer is
null
Control with ID = "AttributeID333_6" exist, so I have no idea why I get null :/
Is it possible to find control dynamicly?
Have a nice day
Kamil