Please help me, here is the code in Javascript, I need to change this code to Jquery.
eval("parent.document.forms[0].strKey" +
intDimensionId).value = strIds[intDimensionId];
high performance:
minimal jQuery: $('form:first')[0]["strKey" + intDimensionId].value = strIds[intDimensionId];
not as high performance:
full jQuery: $('form:first *[name="strKey' + intDimensionId + '"]').val(strIds[intDimensionId]);
parent.document.forms[0]["strKey" + intDimensionId].value = strIds[intDimensionId];This should work although there are really plenty of ways to do this. Also note the use of the input tag. Your code may use a different tag so update accordingly.
$('input[name=strKey'+intDimensionId+']',
parent.document.forms[0]).val(strIds[intDimensionId]);
'input[name=strKey'+intDimensionId+'],select[name=strKey'+intDimensionId+']'...regardless jQuery is not required at all for this (see the comment on my post)
evalit's evil and the need of using it point you have bad code design.