In an asp.net 3.5 website I need to get the ClientIDs of all textboxes in all rows of a Repeater (''rptrEntry''). This needs to be done on the client side and then pass those ClientIDs to a third party spellchecker (Keyoti). The repeater has three asp textboxes per row.
I have a spellchecking button outside of the Repeater like this:
<input type="button" onclick="els = getContainedTextFields(document.getElementById('rptrEntry')); rapidSpell.dialog_spellCheck(true, els)" value="Spell check" style="width: 90px; font-size: 12px" class="Button" />
I have tried many variations of the following function but cannot seem to get the ClientIDs which need to be passed to the spellchecker:
var ids = ;
var children = element.childNodes;
for (var j=0; j < children.length; j++)
if (children[j].tagName == "TEXTAREA" || (children[j].tagName == "INPUT" && children[j].getAttribute('type').toLowerCase()=="text"))
ids[ids.length] = children[j].id;
Any help with this would be gratefully received.