Skip to main content

Bug Tracker

Side navigation

#4815 closed bug (invalid)

Opened June 24, 2009 11:05AM UTC

Closed August 07, 2009 05:36PM UTC

Doesn't add a class properly

Reported by: mnsanthoshkumar Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

There are 2 cells in a table and 1 has a class defined. I was trying to transfer the class to the other cell with the below code, but it didnt help.



<html xmlns="" xml:lang="en">


<meta http-equiv="content-type" content="text/html; charset=utf-8" />


<script src="" type="text/javascript"></script>

<script type="text/javascript">

$(function() {

$('#up > td').next().addClass('test').end().removeClass('test');




.test {

border:12px red solid;




<body id="body" class="body">

<table width="100%" border="1">

<tr id="up">

<td class="test">1</td>






Attachments (0)
Change History (1)

Changed August 07, 2009 05:36PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Your selector is selecting all tds under #up. Please review the jQuery docs and ask questions on the forums.