jquery

Jquery staggered fade-in is breaking my slider

Hi, I'm trying to stagger the loading of my page, which has a slideshow on it. Ideally I would like the page to load in two steps, header first then the body, but when I break it down this way my slider reacts poorly. I've been through a few steps but can't get it all to come together the way I want. -If the whole page fades in at ...

Fading colour of links on mouseover mouseout with jQuery

Im trying to achieve a nice fade to color effect when you mouse over links in jQuery. So far I have: $('a').hover( function () { $(this).animate({ color: '#fff' }, 1000 ); }, function () { $(this).animate({ color: '#000' }, 1000 ); }); Which actually does work fine. However, imagine if the links are navigation, being close ...

How to append checkbox value to an li

Hey guys, so I would like you to help with an issue that I'm having, pretty much what i need is when the checkbox is clicked to append the checkbox value to an li element in a different div. Check the html below. Thanks in advance. <div class="heading"> <p><a href="#">Experiences</a></p> <a href="#" target="_self">modify</a> ...

jquery:How do i attach an array to form request and send it to php in Jquery

var subtbl = $(this).attr('data-counter'); var stunbr = $(this).attr('data-stunbr'); var m = 0; var checkedlines = new Array(); $.each($("#sub-table"+subtbl+" "+"input:checked"),function (m){ var chk_value = $("#chk_"+stunbr+"_"+m).attr('value'); ...

How to move image within a div tag

Hi All , I have a image inside a div which is 100*100 , i want to move the image inside the div like various company's does. for example www.zazzle.com does that. I tried the below code ,but it is pushing all other divs down ,the divs are getting expanded. any idea how to do this. $item.animate({height: '+=5', width: '+=5'}, 'fast',...

jQuery - how to implement live() on combobox?

hello, i have combobox (in fact, several of them), with elements that are added dynamicly. using jQuery, i don't know how to implement function that will return id of item i selected in combo... i know that it have to be something using .live(), something like $(".foo").live("change", function() { do something; }); ... but i don'...

jQuery: Adding properteries twice/later in code?

Is this possible? I have this right now for my fancybox: $(document).ready(function() { $("a#uploadImage").fancybox({ 'titleShow' : false, 'width': 560, 'height': 620, 'autoDimensions': false, 'overlayOpacity': 0.6 }); }); Is it possible to later on to do: $(document).ready(funct...

JS / jQuery: Already in array?

I'm trying to find out the best way to check if an item is already in an array. I have a number of checkboxes that belong to 1 of 5 groups. When a user clicks on one of these checkboxes, a second and third list that belong to one of the groups is written to the page. What I'm trying to do is add these groups to an array, and once they'...

jQuery search ID for certain text

I am looking for a way to search for an ID on the current clicked element. Example: $('.t_element').click(function(){ if(!$('.t_element [id*=meta]')) { transModal($(this)); translateText(); } }); I basically need to say if the clicked element id does not contain the word...

Improve performance of this jquery script

This runs fast compared to other's.But i dont know how fast it would be at slow computers.. The code filters the results dymanically. The criteria are set in css class.. $(document).ready(function () { $("#filters a").click(function(event) { event.preventDefault(); event.stopPropagation(); if($(this).ha...

asp.net+css+jQuery - how does it all work together?

Hi, I would like to understand how can I use jQuery to work with asp.net and css. When I'm writing asp.net code and for example I'm adding to a page DropDownList, I can't see it in the source when I'm opening source of a page in web browser. Instead of dropdownlist I can see select tag. When does the "magic" is done to change asp.net ta...

Javascript Bind on Blur, Both 'if indexOf' and 'else' Performed

[Edit by Author - 10/27/2010 @ 08:49 AM CST ] HTML <!-- Contents of div #1 --> <form id="6hgj3y537y2biacb"> <label for="product_calendar" class="entry_label">Calendar</label> <input type="text" name="product_calendar" class="entry" value="" /> </form> <form id="pyc2w1fs47mbojez"> <label for="product_calendar" class="entry_l...

Clicking an input element in Chrome causes lost focus

I have a page that, when I select an input element with the mouse in Google Chrome, the focus moves to the first element in the div they are in. This doesn't occur in IE, Safari, or Firefox. I am also able to tab through the elements with no problem. This page also use jQuery and jQuery UI. Any ideas are greatly appreciated. ...

Remove video when it is completed

I am looking to have a video start when a page loads, but once the video has completed, to hide the video (remove the layer possibly). I saw it on a yoga site a few years ago where a video message from the owner appeared over top the content when the page loaded but then dissapeared after the video was done. Not even sure where to begin ...

Help me understand scrolling in javascript(jquery) terms.

When you scroll, are you changing the position of something? How can I change the position of the scroll? Specifically to match the cursors movement. What I want to do is scroll the window when I click and drag with the cursor inside the window. For example: I have a 400px by 400px div with a 900px by 900px div inside of it. I want to...

Adding readonly attribute to all form elements

I'm using jQuery to add a readonly attribute to all form elements but can't seem to figure out how to do this. Here is what I'm trying: $('#form1').each( function() { $(this).attr('readonly', true); }); I have a simple form using label/input to display form elements. Also I'm using tipsy (Tool tip plug-in) as well as Formalize (Look ...

jquery variables, the difference between with and without $ prefix

Hi there, I have read another post/question regarding jquery variables and it was useful but I'm still having trouble understanding... Below is a bit of code from a simple tabbed content functionality that I'm modifying. Please could someone explain why this works: $tabMenuItem.click(function() { var activetab = $(this).find(...

JQuery Empty Function

I am attempting to completely empty a div, I have it populated on load with PHP and a foreach loop, its printing programs from a database, here's what the source looks like when the page is first loaded <div class="frame" id="program_list"> <div class="box"> <div class="box-holder"> <di...

A potentially faulty "too much recursion" error in jQuery 1.4.2

Hi, I think this may be a "false positive", but I could be wrong. I have the following script and it's crashing on one line with a "too much recursion" error: var Win, Doc; var Content, Blackout; $(function () { Win = $(window); Doc = $(document); Content = $("#Content"); Blackout = $("#Blackout"); Content.bind("r...

Which jQuery Flash plugin is good?

I found these three jQuery Flash plugin: 1) http://plugins.jquery.com/project/jquery_flash 2) http://jquery.lukelutman.com/plugins/flash/ 3) http://jquery.thewikies.com/swfobject/ so, which one is the best to use? ...