Hi guys,
I am trying to create a JSON object from a bunch of grouped HTML elements, this is my markup,
HTML:
<div id="locations_wrapper">
<div id="location_0" class="locations">
<div class="container">
<label for="locations_province">Province: </label>
<div>
<select id="locations_province" n...
i have some tr tags with a checkbox in each and when the user clicks on any of the checkboxes i want the content from that tr to be written anywhere on the page
Here is the HTML:
<tr class="gradeA odd">
<td><input id="instance_selected0" name="instance_selected0" value="2" type="checkbox"></td>
<td>September 15, 2010</td>
<td>Melbou...
I have one class of divs ('open') the contain another class of divs ('items') like this:
<div class="open">
<div class="item">
this is a test 1
</div>
<div class="item">
this is a test 2
</div>
</div>
What I'm looking to do is a slidedown of all the 'item' class divs that are in the 'open' class that's clicked...
In the following code the first and second images with anchors have links and in these images the caption text does not hide (opacity 0) on page load in IE 6 / IE7 or IE8 in Comp mode. All other images work fine but I need to but links in them.
Here is the code in JSfiddle
FF works fine and IE8 in normal mode is fine as well
I would p...
I have (http://science.users.anapnea.net) a section of html/js that isn't playing well in other browsers.
The section in question is an anchor tag that calls a jquery $.get function:
$.get("info.html", function(data){
$('#page1Content').html(data);
});
This is doing nothing in IE, but works fine in FF and Chrome. The only hint of...
$.validator.addMethod('AZ09_', function (value) {
return /^[a-zA-Z0-9.-_]+$/.test(value);
}, 'Only letters, numbers, and _-. are allowed');
When I use somehting like test-123 it still triggers as if the hyphen is invalid. I tried \- and --
...
I'm having a problem with some jquery animations.
I have dynamically created divs with 'mouseover' and 'mouseout' live events, where I simply change the div's opacity using the animate() method with a stop() to prevent the queue to build up. And I have a 'close' button inside the divs with a click event, where I just make the div fade o...
I am trying to learn jQuery and I posted a question asking for some help on a topic. Someone kindly helped me out and I highly appreciate it. I just want to know if someone can help me understand what the different parts of this is doing
$(".gradeA, .gradeU").find(":checkbox").click(function() {
if (this.checked === false) { return;...
If i have a few classes named something similar is there a way to grab them all in one shot
#instance1
#instance2
#instance3
#instance4
("#instance").click(function()
//GRAB ALL OF THEM
...
i'm loading in jquery a google map json and i receive correctly the json object called 'data'
sometimes — i can't identify exactly when or why and that's why i came here —
even if i receive the regular values, BUT firebug console reads it is undefined!
for example, I have this line below in my js:
console.log(data.Placemark[i].Addre...
Hi,
I'm new to jQuery, but have been working with javascript and DHTML for several years. Trying to transfer over my knowledge of that to jQuery but have run into a snag.
When hovering over a div, the popup comes up fine. If you leave the initial trigger div, the popup goes away - great. The problem occurs when I move off the trigger ...
Hi, I've implemented a lava lamp style navigation menu (from here) to work with my WordpPress blog's navigation menu. This function needs to select an id or class for the navigation menu link it is supposed to hover over. I set this up in the function's code to select <li class="current_page_item">, which is a class applied by WordPress ...
I noticed that JSON files don't have null values for certain properties, because they don't list the property at all... this, compared to XML, creates me lot of problems ...
I wonder if there is any function to find a property inside JSON...
I imagine something in jQuery like
$(data).find("myPropertyIneed").val();
instead of data.Ma...
I have a ajax code which returns the list items as
<li>one</li>
<li>Two</li>
Each time it will return different number of <li>'s. I want to check the number of <li> it returns. How to check it using Javascript. Please Help.
...
How to highlight a content located at specific location ?
I want to highlight a contents by location.
for example I have a location value (x,y)=(0,312).Then how to highlight that contents by using js/jquery
...
I have a UL with a bunch of LI's. Now, when I click on an LI I do an Ajax call and get a SPAN returned to me.
What I'd like to do is move the LI under the clicked one down and then fade in the new SPAN in the hole produced by moving the LI down.
I'm kinda not allowed to use an accordion in this instance if it can at all be helped.
Do...
I'm trying to align the height of a sidebar div by the height of another div, accessed (show/hide) by clicking on a link. The solution I've implemented so far is to attach a function to each click, and set $('').height(height) for the sidebar div. 'Course, it doesn't work in IE7, although it's great in IE8 and firefox.
JS code:
fu...
what is the difference between window.onload and document.ready.
...
I've developing a website in localhost. I'm using jquery, some javascripts, CSS and HTML.
When I try to load the site with IE, an error message pops up saying "Out of memory at line 12". I clicked "OK' and it continues working fine. The message however doesn't show up in Chrome or Firefox.
Can anyone tell me why is it so. How can i fix i...
Hey, I need to switch from jquery weekcalendar to fullcalendar and I am having troubles with understanding of adding new events. In weekcalendar its easy, I trigger the addEvent functions, open the dialog box and there I have my form and save everything ok with ajax. I also have a selectbox where are all times from the settings of first ...