I'm using the jQuery Tools Scrollable plugin to scroll through some items horizontally.
I want to add a class to the focused item in a Scrollable instance. I've determined that could add an '.active' class to the focused item onSeek, and onBeforeSeek I would remove '.active' from the item that has it, but I'm having trouble writing the ...
I need to find a way to the get the class from a li and then add that class to a div that wraps all my main content. so...
<div class="structBody">
<ul id="ContentBreadCrumbsColor">
<li class="teal"></li>
</ul>
<div class="cntrWrap LI_CLASS_GOES_HERE">
HTML TEXT GOES HERE
</div>
</div>
Can anyone help? I have t...
hi all, I am trying to add a class to my tr rows if the select all checkbox has been selected, but I can't seem to get the add class to work (and then obviously remove them if check all has been deselected), I am using toggle on each individual row to add/remove the class, but can't seem to get it working for the check all.
Here's my ta...
Can anyone help me I have two panels I’m using on one page and I only want one to show at a time so I made an adjustment to the js but it doesn’t seem to be adding the class. Can anyone help?
$(document).ready(function () {
$("div.panel_buttonGal").click(function () {
$("div#panelGal").animate({
...
Hi, basically i have a page on my site with boxes that slide to reveal a background color. I want this background color to be random on load of page by adding a class to the element, eg .blue, .green etc...
I have created this code and as you may notice this randomly sorts the color class and applies to the element, this works for the f...
I need to add:
an ID to the table in my form
a numbered sequence of classes to a certain amount of TD's in every next TR in that table (three td's in this case)
I've got next html-model:
<form id="myform">
<table>
<tr>
<td>some text</td>
<td>some text</td>
<td>some text</td>
</tr>
<tr>
<td>some text</td>
<td>some text</t...