I have a complex html-Form and am using jQ for some of the work there. And spent the best part of this afternoon trying to understand a problem which I was able to trace back to the point where jQuery failed to find an existing control.
The command $("#FormView1_CopaBOM973row%18%_dkF").width();
returned null.
First I thought about an error in the width()-implementation and tried $("#FormView1_CopaBOM973row%18%_dkF").attr("id");
- which did not return anything and its length was 0.
Im doing this in Firefox 3.5.5, have used Firebug's DOM-Explorer to verify the thing was there. And finally, the ultimate test worked: $(document.getElementById("FormView1_CopaBOM973row%18%_dkF")).attr("id")
returned the expected result.
So, my only idea would be that any "suspicious" characters would need escaping, but the doc doesn't mention underscore or percent as "suspicous". So, where's my fault?
And pls. don't ask for more "code", I don't think this issue would need any more...