I'm designing a navigation bar for a site, and I'm trying to noodle out how to get the submenu that appears with each tab to stay visible after the cursor leaves the tab. Since it fades out immediately after the cursor leaves, I can't set a function on the submenu. So what I'm trying to do is introduce a setTimeout() to the out side of...
When I add something of the class "myClass" I want to call a function on this element.
It would be something in the lines of:
jQuery(".error_message").live("load",function(){
alert("test"+this);
});
... except this doesn't exist.
What's the best way of doing this?
...
I have the following jQuery function:
function GetGrandparentDiv(item) {
return item.parents('div:eq(1)');
}
Which is called by the following function:
$(".addset").click(function(e){
e.preventDefault();
var addstr = "<span class='setrow'>random html</span>";
var gp = GetGrandparentDiv($(this));
alert(gp.attr...
the design calls for an image gallery with thumbnails for different characters and when u roll over a thumbnail a larger version of the image appears and in a div to the left with a header and description for each character also appears.
1) is there a way to have a rollover control both divs? (enlarged image and description)
and
2) ho...
When you click you a checkbox I want the message to fade in slowly.
Why doesn't .fadeIn() work in this example?
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="t...
In ASP C#, you can create a select (ListBox) then populate it with items (ListItem): ListBox1.Items.Add( new ListItem("Display name", "value")); This has an Add method that takes a ListItem option object.
Is there something similar in JQuery where you can add JavaScript objects to JQuery selected DOM objects without using ad hoc html t...
Hello,
I'm using custom meta data to display images as a post in wordpress. When I click the image on my main page it opens in colorbox and this is perfect.
WHAT IS HAPPENING : now, with the image loaded into the colorbox, when I click on the image it cycles through the images on my home page ( NOT what I would like ).
WHAT I WOULD L...
Is there a list online somewhere of IE8 changes that might break existing JavaScript code?
We have a few clients which we developed a few different apps for using jQuery, YUI and some pure JavaScript. All have problems after upgrading their browsers to IE8. The jQuery display we did won't show. Tabs in YUI won't work. And table.deleteRo...
Hi , iam dinamiclly setting the postion attr of the element only when the view is out of viewport of the window, in other case default value is set from the css file ,
.css( { "left": (left + 20) + "px", "top": (top+10) + "px" } );
once the dynamic position is set i want to remove the position attr alone , i can remove style attribut...
Hi, a colleague suggested I give this framework a try. My question is, does anyone have any feedback about this, is it better than using JQuery
UPDATE: I found this posting which partially answers some of my questions
http://stackoverflow.com/questions/835755/how-different-is-ext-js-from-others-like-jquery-and-mootools
...
http://acko.net/dev/farbtastic
I would like to have a few INPUT and users can change color for each. However, each input is synced with some other classes (like body background color, or menu background color).
I want to be able to change color with Farbtastic Color Picker and it affects BOTH the INPUT and the CLASS / ID that synced wi...
If I have a span tag like this:
<span>Hi<br />SecondLine</span>
And I call this jQuery function:
var html = $('span').html();
html is set to:
Hi<br>SecondLine
Now, I realize the name of the function is html() and not xhtml(). But is this expected behavior? Can I count on it, or do I alway need to check for a xhtml br tag an...
hi, also try this but for me it isnt working.
http://stackoverflow.com/questions/1310378/determining-image-file-size-dimensions-via-javascript
i upload image, insert it on page through jquery and want to create div around inserted image, but dont know image dimensions.
$("#temp_image").html('<img src="uploads/obr1.jpg" alt="" id="tmp"...
Hello,
I have this :
<select id="CheckList" multiple="multiple">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
Is it possible with jQuery to get a full list of the options with separator bewteen like this : 1,2,3,4
Thanks,
...
I've been playing around trying to get a function that will sort a selection of li tags by their content but currently to no avail (at least no speed/accuracy);
$('.sortasc').live('click',function(){
var liArr = Array();
$('#licontainer').children('li').each(function(){
liArr.push($(this).html());
})...
Hi,
I'm trying to create function that will do this same thing for 3 different classes. The only problem is that every time when I hove over any of the divs it affect all the others instead just one.
Could anyone advice me please how can I make it work separately for each class on hover stage:
$(document).ready(function() {
$(".bbsa...
jQuery question
What happens if I bind two event handlers to same event and same element:
For example:
var elem = $("...")
elem.click(...);
elem.click(...);
Later wins or both handlers will be run?
...
I'm trying create a trashcan where after you've put some items there, you could simply open it and drag any trashed item out of it by dropping it outside the trashcan.
The way I've set this, is my web app has a trashcan icon where I drop the items and clicking the trashcan opens a box with the trashed items and fades in a black transpar...
Hi,
How to set a value for a span using JQuery..
For example…
Below is my span
<span id="submittername"></span>
in my JQuery code…
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
var invitee = $.ajax({
type: "GET",
url: "http://localhost/FormBuilder/index.php/reports...
I'm using JQuery Form Plugin to upload a file together with PHP, everything works perfectly in Firefox, but in Internet explorer is does not do anything if I submit the form.
My code is below
<script type="text/javascript">
<!--
$(document).ready(function() {
var options = {
target: '#message',
url:'../includ...