if you want to find id of input control from text of it.. try this javascript function..
function getID()
{
var coltrols = document.getElementByTagName('input');
var id="";
for(var i=0;i<controls.length;i++)
{
if(controls[i].value == 'your value')
{
id=controls[i].name;
break;
}
}
return id;
}
hope it helps..