jquery

jQuery hover animate & click problem

Hey there, have a list of images as a navigation. when you hover over them a div with transparent background slides up. when you hover out the div slides down. that part wokes like a charm. now when you click on the image or title, the div with the title changes its opacity to 1, moves to the top of the image and gains 100% height. t...

jQuery .each question

Hello Community, I am working on a project, which requires me to select a item from the categories navigation, which contains a "rel" attribute like (category-action, category-adventure, etc). As you can see from my demo: My Demo Script, it works on the first two categories, however, it does not work with the last two. Why is this? and h...

Wrap <a> tags around <img /> with href = img src?

Trying to wrap an tag around an image, addClass and input src of img as href of tag: $(document).ready(function() { $(".new img").each(function() { var src = $(this).attr('src').addClass('image'); var a = $('<a/>').attr('href', src); $(this).wrap(a); }); }); My HTML: <img class="new" src="pic0.png" title="Image_Title"/...

jquery - how to add/remove class on slideToggle ?

Hello all, I would like to each time the div expands, to add the class 'selecionado' once the expansion is finished. When the contraction is done (the slideUp part) I would like to remove this class. Can I have a help here please? $('#btCategoriaA').click(function() { $('#listaCategoriaA').slideToggle('slow', function() { $('#b...

Disable a:hover styles when some element is visible;

Hello all again, Thanks to Nick Craver, I got this working. What it does, it shows hides a class based on the visible state of something. $('#btCategoriaA').click(function() { $('#listaCategoriaA').slideToggle('slow', function() { $('#btCategoriaA').toggleClass('selecionado', $(this).is(':visible')); }); }); Based on the same...

jQuery autofill with multiple values and icons (email to field)

Hi All, I want to create a recipient field on a form using a jQuery autocomplete field for the lookup. I want this to be allowing multiple values. I am already clued up on how to do this. The catch is, when adding a recipient and using auto complete to perform the lookup, the recipient name should have a blue background with a remove ...

Override the form 'Reset' behavior when data is refreshed via ajax

I am relying on the "Reset" behavior of a form to cancel the edits, the problem i am facing is that once post the data is updated via ajax, the reset still reverts back to the data that was loaded with the page origionally. So basically what I need to be able to do is "Reset" the "Reset" function. Make sense? ...