$(":input") breaks

$(":input") breaks

Hi,
Need help in solving the problem of $(":input") breaking on IE 6.0
1. We are using JSF viewFragments - <hx:viewFragment id="frgmntInternal">
2. We want to get all the form fields within this <hx:viewFragment id="frgmntInternal">
3. The above view fragment is included as follows,
<h:form styleClass="form" id="form1" binding="#{registrationBean.formName}">
<c:choose>
<c:when test="${pageScope.registrationBean.userType eq false}">
<jsp:include page="/RegistrationPortletV.jsp" />
4. The RegistrationPortletV.jsp has got the form fields whose reference we need to get, using $(":input");
example: javascript code...
var allInputs = $(":input");
alert(" Elements by selector " + allInputs.length);
5. when the above lines executed thru IE6, the line var allInputs = $(":input"); breaks. After that no js code executes.
6. We tried #formName or #divIdRef or #.styleClass none of them works.
Any help is appreciated.
7. Since we use the JSF, the html elements are created as follows,
<select id="viewns_7_IA48HIO0901R50IKL4KV2S20G7_:form1:frgmntInternal:companyName_lst" name="viewns_7_IA48HIO0901R50IKL4KV2S20G7_:form1:frgmntInternal:companyName_lst" class="inputClass" size="1" onchange="primarySubmit()"> <option value="1">Select a Company</option>
<option value="1206">Company1</option>
8. We tried the $("#form1:frgmntInternal :input"); as well. The js breaks at this line (var allInputs = $(":input");)
9. The generated form tag details as follows,
<div id="id4jQuery" > <%-- This we use it to get all input elements on page using jQuery on other regular JSP pages it works but not on JSF fragment view --%>
<form id="viewns_7_IA48HIO0901R50IKL4KV2S20G7_:form1" method="post" action="/bc/myportal/!....
10. How to get the form input elements in this situation? Thanks in advance.