jquery

How to add a class to list where there is unordered list child with jquery?

I would like to add a class called "with_ul" to li tags where there is ul under in the following normal list with jquery. In the following case I need to add the class to list of Level 1-B, Level 2-B-1 and Level 1-C since they have an unordered list. <ul id="nav"> <li>Level 1-A</li> <li>Level 1-B <ul> ...

problem with returning the filename using Uploadify

Hi, I am using the Uploadify Plugin to upload the picture, and i am doing some operations like a) when a user upload the file the upload button is removed automatically b) and the uploadify.php script will rename the file and store it in designated directory. and here is the code which i am using to perform the action. Jquery Code : ...

jQuery slideshow doesn't work on Firefox

Hi, I have this website and from today the picture slide show (using jQuery) stopped working on Firefox. Working fine on IE & Chrome. Any ideas? ...

JQuery UI Datepicker not working inside asp:MutiView

Coding with ASP.NET 3.5 C#, jquery.1.4.2, jquery-ui-1.8.2 My textbox is in fourth asp:View of an asp:MultiView which is not active on PageLoad. My Page is also a content page with a master page. The textbox is created like <asp:TextBox ID="txtStartDate" runat="server" CssClass="datePicker" MaxLength="20" Re...

jQuery animate on hover, instantly disappear on mouseout?

Hi I have the following code on my website, which causes a div to slide out from the left. This works fine, but when the mouse leaves the area I want to the div to instantly disappear, instead of animating back left again. I have tried many different ways of doing this but none seem to work. I'm sure there is an easy way of doing this. T...

Different outcome between a user clicking a jQuery UI button and using jQuery click() on it?

I have a form to create a Ruby on Rails object. A part of the form uses radio buttons to choose an attribute. I then use jQuery UI to display the buttons, like so. <head> <script type="text/javascript"> $(document).ready(function() { $("#typeRadios").buttonset(); }); </script> </head> <body> <div id="typeRadios"> <i...

JQuery, updating form and exception if update it more then once

I've got index of my elements: <h2>Index</h2> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(document).ready(function () { $('button').click(function () { $.post("Home/Swap", $("#log...

how to set voting code in PHP with Jquery

hello everyone, please tell me how can i write a Rating code in PHP. Like Thumb Up and Thumb Down. Please help me thanks in advance ...

Why i can't show/hide Html TR using jquery ?

I have the following TR in HTML and i using JQuery <tr class="RowDiv" id="tempTR" runat="server" visible="false"> <td> <div class="LabelDiv"> <div class="dfltTxtBld"> ID<span class="reqChar" runat="server" id="Span1" visible="false"> ...

how can I call variable out side of $.ajax ?

I am trying to make condition to call chain function in Jquery. I used $.ajax in Jquery submit function to get values from login.php and I am trying to call fadeOut function to close login form. If login succes form will close then there will be some Success message and then it wil lalso close. And if error then form will remain and als...

jQuery Facebox: Sends empty input field value.

I have facebox plugin to my jQuery, to make lightbox for me. I made a link that you click on and then a friend request form comes up in it. The form makes an ajaxcall when click on "Send request", but the 2 fields dont send anything of what you have written in it, it just sends empty value. But if its not inside the facebox lightbox th...

jQuery Resize plugin

Hey there, folks I spent hours of searching for this but without any success. I need a plugin (jQuery) that is similar to jQueryUI's .resizable() applet. I need to resize a div by a grip in left bottom and I cant use jQuery UI. Any help will be apriciated. ...

jQuery binding issue

function addFav(){ $.ajax({ url: "/favorites/add", data: {"id": articleID}, success: function(){ $('a#fav') .addClass('active') .attr('title','[-] Remove as favorite') .unbind('click') .bind('click','removeFav') ; } }...

Jquery Validate Plugin Concern

Hi All, I am trying my way around on using the jquery validate plugin but I cant seem to make it work on one particular aspect. I have this scenario, my form has limited space so the label error generated by the validate plugin cannot be seen if ever there is a validation error So what I did is, I created a container below my form to ...

Jquery - Get the ID of an element using find()

Hi, how can i get the id of an element by using the find method? HTML <div id="d1" class="line1">blib blab blub </div> JS $(function() { // hit_id = $(".line1").find("blab").attr('id'); hit_id = $(".line1").match(/blab/).attr('id'); $('body').append(' - '+hit_id+' - '); }); Working example http://www...

Mini image browser (like on myfonts.com)

Hi, I want to make small image browser like the one used on Myfonts.com (link) in the sidebar under "More fonts like this". I'm wondering if there is a jQuery plugin that could do that. I know that this is some kind of carousel, but I couldn't find any with this cool resize function on scroll. ...

Javascript to pre-select textarea on page load

Hello everyone, I have a page that has a textarea, when the page is loaded, I want to pre-select the textarea(like twitter.com does), so the user does not have to click on it. Do you know how to do that? Previously thanks! Rodrigo Alves Vieira. ...

How to add div tag after wrap with jquery

(updated) I want to change the following, <div id="system"> <div id="product_cont img"> <img src="image1.jpg" /> <img src="image2.jpg" /> <img src="image3.jpg" /> .. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc porta euismod luctus. Curabitur vehicula scelerisque diam at vestibulum. Pellentes...

How to check if iframe fails to load? jquery?

I have this jquery code right now and it's working fine. What it does it when a user clicks the submit button, it would hide the form, show the loader, then submit the data to a link and load the output in an iframe. $(document).ready(function() { $("#xxx_form").validate({ submitHandler: function() { $('#input_form').hide(...

Undefined is null or not an object - Jquery validate

Hello all, I have an issue when using the jquery validate plugin with IE. I get the following error "undefined is null or not an object" when validating the form. The error is at line 431 : " $("#signup_meeta").submit();" $(document).ready(function() { $("#pseudobox").hide(); $("#passwdbox").hide(); $("#emailbox").hide(); $("#sexe...