Side navigation
#4916 closed bug (worksforme)
Opened July 17, 2009 09:45PM UTC
Closed June 13, 2010 01:39PM UTC
Attribute filter [attribute^=value] working fine in IE8 but not FF3.5
Reported by: | snarkis | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | Firefox attribute filter | Cc: | |
Blocked by: | Blocking: |
Description
I have a script that runs on a click event to hide all table rows that have a class that contain "letter", then it shows all tr's that contain "letter?" where "?" was obtained from the letter that was clicked.
var classMatch ="\\"" + "letter" + strClicked + "\\"";
$('tr[className*="letter"]').hide();
var i = 0;
$(eval("'tr[className*=" + classMatch +"]'")).each(
function(){
$(this).show();
i++;
});
$('#searchTitle').html("We have found " + i + " suppliers meeting your criteria");
A Sample row from the page:
<TR style="DISPLAY: block" class="letterE fasResults" jQuery1247866605631="53"><TD class=fasName></TD>
<TD class=fasDME></TD>
<TD class=fasContactInfo></TD>
<TD class=fasItemsCell></TD></TR>
The part that does not seem to work in FireFox 3.5 is the [className^="letter"] attribute filter. This works fine in IE8. I apologize if this is a syntax error on my part, but I have searched for an answer without success. Since it works in IE8 I am stumped.
Attachments (0)
Change History (4)
Changed July 20, 2009 08:40AM UTC by comment:1
Changed July 20, 2009 08:48AM UTC by comment:2
example btw: http://jsbin.com/ihejo
Changed July 20, 2009 08:41PM UTC by comment:3
thank you for your help!
Changed June 13, 2010 01:39PM UTC by comment:4
resolution: | → worksforme |
---|---|
status: | new → closed |
You should use
instead of className.