jquery

jquery autocomplete with outlook style

Hi, Does anyone know how to make jquery autocomplete with comma seperated (just like in outlook)? thanks ...

How to use jQuery to display labels and input values?

I need a jQuery function that'll go through paragraphs with the following structure: <p> <label>some label</label> <input type="text" value=""/> </p> The function should use the label text as input value. Thanks! ...

Change event not firing when radio button is selected with keyboard

<script> $("input[name='my_radio_button']").change(function(){ if ($("input[@name='my_radio_button']:checked").val() == 'ONE'){ do_this_stuff(); } else { do_other_stuff(); } }); </script> <input type="radio" name="my_radio_button1" id="radio1" value="ONE" checked /> <input type="radio" name="my_radio_button2" id...

PHP Upload Progress Status

Hi guys! I need to show upload status (Total size, curent uploaded size and upload speed) But every script need library and I don'T know how it work (I use XAMPP under Windows)... I have only APC Lib. I tried FancyUpload, but even in the demo I got this error : Error caused a send or load operation to fail (Error #2038) And I tried SWF...

jQuery update DOM to access injected html tags

Ok I'm submitting a form via ajax. The result string is a bunch of html links and images which I append to the body of the DOM. Is it possible to search with jQuery within this new code? before ajax request: <div id="results"></div> after ajax request: <div id=results"> <img src="somevalidpicture.jpg" class="image"/> <img src="...

Ajax lightview multiple instances

Hi, can i call multiple times the lightview for different content? Can anybody help? If i can't do it I think i will try the jquery ui modal window, is the better way? ...

Jquery sequential fadeIn and FadeOut - same place

I have three images and I would like them to First Image: fadeIn, wait a while, then fadeOut; Second Image: (on the same place) fadeIn, wait a while, then fadeOut; Third Image: (on the same place) fadeIn, wait a while, then fadeOut; //do something... I have this stupidity so far. $(document).ready(function() { $('#i...

jquery problems in IE6, anyone?

function validate_request_form(){ var valid = true; if ( document.request_form.firstname.value == "" ) { alert ( "Please fill in first name" ); valid = false; return false; } return valid; } $j('#video-request-form').submit(function() { if (!validate_request_form() ) return false; }); I am using this code to val...

Find Minimum Value in a Column

I have an HTML table column containing integers. What's the most efficient way to get the minimum value using JavaScript or JQuery? ...

Is there a watermark that i can edit

I am using this plugin and it works great but i cant edit the text ...if i click on it, it disappears. Is there an easy way to implement that or any other plugin that maybe able to help me ...

jquery cycle plugin redirect at end - callback basic question

I want to display some images but, at the of that, I would like to redirect. $(document).ready(function() { $('.intro').cycle({ fx: 'fade' }); window.location.replace("http://www.something.com"); }); This will not work, it seems that js don't wait for the intro to finishes. Should I use a callback here? Can I have s...

jQuery object expected error in asp.net page with master site

The error i get seems to be centered around jquery finding what it's in (window,document, etc.). Right now i'm just trying to implement the jQuery datepicker. the project has a master page, where i placed my script references. <head runat="server"> <title></title> <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" /> <lin...

category subcategory in drop down

Hi, Is possible to create category in the drop down menu using jquery? so it will be: Southern Suburb suburb1 suburb2 suburb3 suburb4 Nothern Suburb suburb5 suburb6 thanks ...

Callback functions for jquery-templ?

I'm using the plugin jquery-tmpl. Is there a way to specify a callback after a template is run? I want to do something like <script id='itemTemplate' type='text/html'> <li class="item" id=${timestampMs}> <span class="content">${content}</span> </li> ${processItem($('#' + timestampMs))} </script> Where processItem does somet...

jQuery / Dynatree: How to populate dynatree dynamically using asynchronous ajax call?

Hi I'm new to dynatree, but I find it very cool. I am trying to use this treeview in my app where I need to populate the tree based on dropdown slection event in my page. The tree will be initially and will only needs to be populated based on the selections in dropdown fields in the page. I tried to read the documentation, but couldnt...

Center on viewport - a fixed height a width div VERTICALLY using either js or CSS method

Hello, I have a div with several images inside, and I would like to center this vertically. I can give a specific width and height do the div. No prob. I also accept js if I must to. I'm just wondering, from the MAZE of those examples, can I have a simple one. The div as width of 600 and height of 500. Thanks in advance, MEM ...

Combine multiple selector with filter

Is there a way to combine a multiple selector and a basic filter within a single query? For example... var jq = $(someElement); // Want to find the first following sibling node which has either classA or classB. // This imaginary jquery does not quite work. jq.nextAll("(.classA, .classB):first") // This works. But I wonder if I c...

Change drag options in the middle of a drag

I would like to be able to add an option to my currently dragged element mid-drag. My initial options are: curDomObj.draggable({ axis: "x", drag: curDomObj.trigger("drag") }); And then I'd like to be able to add another option that will automatically update that dragged object without "dropping" it. Specifically, I'd like to a...

jQuery validation regex: textarea contains phrases

I'm trying to check a textarea to make sure it contains text phrase(s). This is what I have so far but it's not working: $.validator.addMethod( "regex", function(value, element, regexp) { var check = false; var re = new RegExp(regexp); return this.optional(element) || re.test(value); }, "Please i...

How To Fade In A background-position change for a background image in jquery?

I am using a giant sprite for an element that changes different states at hover. I was wondering if there was a way to have the hover state image fade in? You can view my code live - here Here's my code for the hover state for each span $(".hf-1").hover( function () { $(this).css("background-position","0 -121px...