Thanks for trying, but this didn't work either. I think there's a problem with the expression "[name^='file']" because if I do this
$("#myDiv input:hidden").each(function(index) { alert($(this).attr("name")); }); My element whose name begins with "file" pops up in one of the alert boxes. However, this expression $("#myDiv input:hidden[name^='file']").each(function(index) { alert($(this).attr("name")); }); did not bring up any alerts. - Dave On Feb 15, 9:29 am, Jamie <[EMAIL PROTECTED]> wrote: > Hey, > > This should work: > > myDiv.find("input:hidden[name^='file'][value='" + myVar + "']"); > > - Jamie Goodfellow > > On Feb 14, 6:33 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > Hi, > > > How do I search the DIV, "myDiv" for a hidden input field whose name > > begins with the word "file" and whose value is equal to the value > > contained in the variable "myVar"? > > > Thanks, - Dave- Hide quoted text - > > - Show quoted text -