Reference an element with javaScript

I’m trying to figure out how to get a value of a repeat control in client side

example:

document.getDocumentById(‘#{id:view:_id1:repeat1:0:inputText1}’).value

it doesnt work

any suggestions?

Thank you

Nina

Subject: use XSP.getElementById

var n = XSP.getElementById(“#{id:name}”);

var nameValue = n.value;

alert(nameValue);