jquery

SWFUpload - breaks on DOM Manipulation..

Has anyone found a way around this yet? I have a project where the client wants the Flash button to have a progress bar embedded within it. So far i'm doing this by having a Div with CSS hidden and then displayed after the file has started uploading. The Button is then hidden however when the button is hidden the event's stop firing. Th...

How do I detect height of an image in jQuery?

I tried the following code: var origh1 = $('img:first').height(); alert(origh1); But it alerted a value of '0'. My img tag does not have a height value set, so is that why it is returning 0? If so, how do I retrieve the value of the height of the image ? Also, I noticed that when I do an animate to increase the size of the...

move content from one hidden div to another displayed div

Hi there, how do i move content from one hidden div to another displayed div using jquery? say i have div1 with display style is none and another div "div2" with display style block. how do I move the content from div1 to div2 and clear div1? ...

Wrapping tab order with a div (jQuery)

I have two forms on my page, and when focus is set to one of the forms, i want the user to only be able to tab through the current form. heres what the html looks like: <html> <head> <script type="text/javascript"> $(document).ready(function(){ $('form').each(function() { obj = jQuery(this);...

What is the meaning of {0} in JavaScript

In the code from this answer: $.validator.addMethod('lessThanEqual', function(value, element, param) { return this.optional(element) || parseInt(value) <= parseInt($(param).val()); }, "The value {0} must be less than {1}"); What is the meaning of {0} and {1}? What is the rule of thumb in Javascript to define those parameter replac...

how to show data graphic at web page

i have an input form and table input data at DB... after that i want make some page that just consist of graphic...for make a graphic i will use data from DB.. what program to make it??i hope that program can work together with jquery and php.. ...

Show div on text entry

Hello, I have a form and I'd like to show a div based on the entered text in a text field. The script I'm using works just fine on my latest version of chrome but it doesn't work on IE or any of my members browswers. What they heck is wrong with the script? <script> $('document').ready(function(){ $('#gname').change(function() { ($(...

How do I use a variable in the animate() function in jQuery?

I have been able to store the height for my image in a variable: var origh4 = $('img:eq(3)').height(); However, now I would like to use that variable in the animate function like so: $('img:first').fadeIn('normal').delay(500).animate({'height':'-=20%'}, 1500, 'easeOutQuad'); How do I do that? I would like to replace the '-=20%' w...

Check hover state with jQuery

Is there anyway to check for a hover state? I have a multipurpose link that switches purposes on click (basically active / inactive). I want to add a transition effect but in order for it to look perfect I'd like to do a possible mouse out effect if the cursor is still hovering over the link, otherwise I'd like for it to go ahead with th...

Modify childeren in an array.

Now I currently have an array that contains 120 pairs. For example: [[1, 12], [2, 15], [3, 10]] Essentially 120 long. Now I am using this data in a Jquery Flot graph. "I have a live example on jsFiddle here" Code: var numbers = []; var jsonString = ""; var PlotData; var x = 0; function EveryOneSec() { if (numbers.length == 120)...

validating 2 select boxes as one value, modifying change function to addMethod for jquery Validation

I have the following code that validates a credit card expiration date, from 2 separate select boxes as being valid. I would appreciate some help changing this to an addMethod for the validation plug in. I have one that works as validating input from a text input, but would like to understand this method when applied to values of select ...

hide column (header and rows) post jqGrid render

Is it possible to hide a specific column in jqGrid after it has been setup, while ensuring all alignments are correct (table width and header/data alignment) for IE/FF. The data can't be removed at back-end w/o major refactoring. I am reiterating through a specific column and checking if it is all empty, and if so, I tried .remove() on...

How do I use animate() in jQuery to increase the size of an image relative to the size of the page?

So this is increasing the size of the image, relative to the original size of the image: $('img:first').fadeIn('normal').delay(500).animate({'height':'+=20%'}, 1500, 'easeOutQuad'); How do I increase it, to say 80% of the user's window (this should work if the user has an 800px resolution monitor, or 1680px resolution monitor). Also...

How do I set a radio button value using jQuery?

I have the following Radio Buttons: <form id="bg" action="#"> <span id="questionText">Question Test Here:</span><br/> <input type="radio" name="bga"><span id="A1"></span></input><br/> <input type="radio" name="bga"><span id="A2"></span></input><br/> <input type="radio" name="bga">...

How to combine 2 values into one with jQuery

I am submitting a form element named "CCExp" it is made up of two select boxes #Month and #Year. I need to combine #Month and #Year so it submits as MM/YYYY. $("#CCExp").val($("#Month") + '/' + $("#Year")); Is this close? ...

How do you set a selected item in an HTML dropdown by name, not by value?

I have an HTML combobox which contains unique options. For example, a country dropdown which contains country_id as a value and country name as text. Is there any way using jQuery or JavaScript to let me set the selected item using the country name not the country_id? ...

CKEDITOR, Bind to ALERT anytime the user MousesOver an element with class = findme

Hello. With CKEDITOR, I'd like to know when a user moves their mouse over an element with a class name of "findme". I can get this to work when the user clicks, but not with a mouseover/hover type event. Any ideas? this.document.on( 'click', function(e) { var editordata = CKEDITOR.instances.meeting_notes.getData(); element...

How to get multiple select box values using jquery?

How to get multiple select box values using jquery? ...

jQuery Selector

Hi all, so I'm having a bit of trouble getting a certain div to show onclick. Any takers? HTML <div style="float:left;width:40px;"> <span class="productControl" style="position:relative;"> <div class="productMenuHolder" style="display:none;"> <ul class="productMenuList"> <li class="productMenuItem">Add to Collection</li...

Problem with Javascript Date function in IE 7, returns NaN

I have a twitter feed and I create a new date obj so I can format the date to my liking. var created = new Date(this.created_at) works in firefox and chrome but not in IE7. I seem to be having trouble passing the date through the new Date() function. It just returns undefined and NaN. Here is the code. If you try to test it out don't ...