Hi, Anuya,
Actually, OBJ_11 is NOT the input field id - it is it's container id. There is much easier way to obtain this data - every input field object is associated with CourseLab run-time variable - when the value is inserted it is copied to this variable also. You can also use in expressions object's (i.e. CourseLab object's) "value" property (as $OBJ_11.value).
If you strictly need JavaScript, then you can use something like:
var aTags = document.getElementById("OBJ_11").getElementsByTagName("input");
var sName = aTags[0].value;
Hi, Anuya,
Actually, OBJ_11 is NOT the input field id - it is it's container id. There is much easier way to obtain this data - every input field object is associated with CourseLab run-time variable - when the value is inserted it is copied to this variable also. You can also use in expressions object's (i.e. CourseLab object's) "value" property (as $OBJ_11.value).
If you strictly need JavaScript, then you can use something like:
var aTags = document.getElementById("OBJ_11").getElementsByTagName("input");
var sName = aTags[0].value;