jquery

Accordion Menu/Sub-Menu Offset

Hi, menu sample I have an accordion menu that currently expands and collapses all with the same container of the menu system boundaries. My question is, (see menu sample), how can I take the sub-menu of my accordion menu, i.e. the expanded bit, that currently shows "Pool & Spa Maintenance" in the attached example and have it display as...

javascript How to trigger native click action (replay event) later?

I'm using jQuery to bind to all links on the page (I'm using the 'click' event, but have tried various combinations of 'mousedown' and 'mouseup',together with bind() and live() to no avail). I can intercept the click no problem (with all the above methods). What I am trying to do is send some data via a GET request, and when it complete...

jQuery validation

Hi, I posted http://stackoverflow.com/questions/3278074/alert-with-jquery-on-button-click but when I try to comment or click the Solution thingy nothing happens(?). I had forgot a " However, I now have $("input[value='OK']").click(function() { if ($("input[title='Start Date']").val().length < 1) { $("input[title='Start Date']...

jQuery, finding controls within HTML template

I'm using an html template: <script id="locationTemplate" type="application/template" > <p> <input id="searchText" type="text" /> <input id="searchlocation" type="submit" value="Search" /> </p> <p> <label>Location Name</label> <input id="locationName" type="text" /> </p> <div id="m...

jQuery - string disapearing from a variable

Hey, I'm doing a search box and when I want the page to redirect, something strange heppens. Here is the script: $('#search_form').submit(function(ev) { var searchTerm = $("input[name = search_term]").val(); var search_location = conf_fullSiteAddress + "search/" + searchTerm + "/"; alert(search_location); window.locatio...

jQuery finding "selector"

Hello, following is my code HTML : <div id = "content" > <div class = "child" >Hello !! </div> </div> Javascript : $(function() { $('#content .child').click(function() { //print the selected jQuery parameters }); }); I need to capture parameters which I pass to jQuery function in above code, I want to print the ...

Programming books in ePub format

I purchased an iPad hoping to read books on it that've been aging on my desk for months, but it turned out that there're NO programming books available on iBookstore. Are there any (Python, PHP, jQuery) books available in ePub format? Conversion from pdf to epub is not an option because the formatting is lost in the process. Thanks ...

How to prevent input field inside form from submitting when enter key is pressed?

I have a simple form. Input fields, checkboxes, radio buttons and finally SUBMIT button. I use jQuery to perform AJAX validation, however when a user presses ENTER inside the input field it submits the form! How do I stop this from happening on this form (not all input fields)? ...

photo gallery for CKEditor

I need to integrate a photo gallery to the CKEditor. I have a list of albums to be shown on the page. I need to have an custom icon in the CKEditor, which shows the list of albums on click of that. I need to have an option to select the album and show the album inside the page as like Galleria. I need to be able to show the gallery be...

Check if element support the property using jquery

Hi All, Jquery newbie here. In a wrapped element set, is there a way to check if the element supports this property? I basically have this pseudocode. $(function () { $("form").each(function(){ if("this element supports disabled"){ $(this).attr("disabled", "disabled"); } }); }); I was thinking th...

How to activate a jQuery Animation when an object slides under the mouse (not onmouseover/onmouseenter)?

I have a sliding image "wall" that slides in the opposite direction of mouse movement with easing. I have a selector for all "a" link elements with a mouseover binding to animate the opacity of the image it contains (highlight effect). If I move the mouse quicker than the wall moves, the wall will catch up but the animation will not ta...

Open an external page in a jQuery Colorbox

How can I open a jQuery colorbox with an external site loaded. I have tried: jQuery(document).ready(function(){ jQuery.colorbox({ href:"http://www.google.com", iframe: true }); }); But with no success. I have not been able to find an example of this from either the colorbox-site or SO. ...

Access param in the callback of jQuery Nivo Slider plugin

HI, I'm using the Nivo Slider, a jQuery plugin allowing to create slideshow. He's perfect but I've just a little problem. Each pictures have an id (or another element like rel for example) and I would like to give this parameter in the callback function of Nivo (beforeChange: function(){}). But the problem, in this beforeChange callbac...

jQuery calculate padding-top as integer in px

The only solution i have found is ($(this).innerHeight() - $(this).height()) / 2 But / 2 is not right option, because user can have padding-top:0px and padding-bottom:20px. Is there a way to make more accurate padding values? I was thinking about css('padding-top') and then parse it, by taking only int part, but value can be in "em" f...

Why web browsers don't have jQuery built in?

It seems like a good idea to me. or add the additional features to Javascript itself? ...

delay the div panel on the bottom

Hi have a little problem, I have a small div panel on very bottom,when I click the button its come out. its working fine till over here. now the problem is, there is a form on this div panel. when i click the submit button, it div return back to default position. how I can fix the div for particluar time. thanks ...

How to pass $(this) reference to a call back function?

I have the following animations in my web page: $(".anim-item").not(this).animate({ opacity: 0, }, { queue: true, duration: 1000 } , function() { // Animation complete. }); $(this).animate({ left: 200, }, { queue: true, duration: 1000 } , function() { // Animation complete. ...

jquery combine event functions

instead of example: $(".myfield").blur(function() { // validate }) $(".myfield").keyup(function() { // validate }) is there a way to combine these two? ...

Jquery click event animation

Hi, i using jquery animation. i need to start the animation automatic when the site open. but in this jquery programmer put Click function. i want to remove the click function.but after i remove the fuction all animation are stopped. http://web.enavu.com/tutorials/curtains-opening-animation-with-jquery/ can anyone help me Thanks ...

Display form field based on selection

Hi guys, I need to make a form that can display certain form inputs when another selection is selected, for example if I select gender: male, input form "blue" displays, and when gender:female input form "pink" displays. I am assuming that Javascript/jQuery would be the best bet? This is what I have thus far: function showHideSchoo...