Hi all JQuery Cracks,
an question to this thread in context to the discuss over the Speed of
Selectors!
What is the best way for this Problem of CORLOS BOTERO?
I think this, for one Table in document:
give the Table a ID
<table id="tableid">
<script type="text/javascript">
$(document).ready(function() {
$("#tableid a").click(function() {
$("#tableid tr").removeClass("highlight");
$(this).parents("tr").addClass("highlight");
}
});
</script>
or this, for more Tables in document:
<script type="text/javascript">
$(document).ready(function() {
$("#content a").click(function() {
$("#content tr").removeClass("highlight");
$(this).parents("tr").addClass("highlight");
}
});
</script>
#content is the ID of the DIV they hold all tables.
Thank you, is for learning ....
--
Viele Grüße, Olaf
-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/