I have a piece of code which inserts a link into a p tag when a date is selected from the datepicker.
For some reason the .click function of this dynamically created link does not work - but it does work if I hard code the button in exactly the same place rather than inserting it dynamically.
Any ideas why this is happening??
$(do...
I want a click on a span tag with .myClass ,and all its descendants, to do something..
$('.myClass'). *<all elements below .myClass>*.click(function(){
//do something
});
How do i select all elements below the .myClass selector ? Not only children, but every node below them aswell.
Im in IE7
...
Hello,
tell me what I need to correct, to the repeated clicking on another cell TR previous events are deleted
Full example
$('table tbody tr').each(function() {
$('table tr:even').addClass('even');
$(this).hover(function(){
$(this).toggleClass("active");
});
$(this).click(function(){
$(this).closest...
I'm loading user control through jQuery in my asp.net page.
User control contains JavaScript files, while loading the user control all my js load at one time which are dependent on each other and they tend to give error while all file load at one time. So I want that my JavaScript file to load synchronously one by one , as one file ge...
i'm using jQuery qTip plugin, but it doesn't work with latest version of jquery(1.4.2)
it works fine with 1.3.2.
What is the reason?
Thanks much
UPDATE:
here is the simplest example, which doesn't work
...
<head>
<script type="text/javascript" src="javascript/jquery-1.4.2.js" ></script>
<script type="text/javascript" src=...
I have multiple datepickers on a page... all seems to be working fine except I the altfield part...
Is something like this possible??
$(document).ready(function(){
$( ".datepicker" ).datepicker({
beforeShowDay: function(date){ return [(date.getDay() == 1 || date.getDay() == 4), ""] },
showOn: "button",
butt...
This is a small issue which started to appear in most browsers (as far as I know) after I added the liveQuery library together with the jQuery .load function.
LiveQuery is working just fine but since I have a opcaity effect on my portfolio that upon pageload lowers the opacity down to 0.6 on my thumbs via the following code;
// LiveQue...
I think a somehwat simple problem, but i can't find any solutions. I need to get the image dimensions from an image that is not yet loaded, but have no clue how.
I have the following html
<a href="http://domain.com/folder/bigImage.jpg" id="someID">
<img src="http://domain.com/folder/smallImage.jpg">
</a>
Now i want to get the imag...
I have the following code:
$(document).ready(function(){
$(".datepicker").each(function() {
$(this).datepicker({
beforeShowDay: function(date){ return [$(this).parent().find("span.days").html(), ""] },
});
});
});
With this body code...
<div>
<span class="days">(date.getDay() == 1 || date.getDay() == 4)</sp...
Hi i have a method that changes the background of a div every few seconds, Like a carousel, when the user rolls over a certain bit of text. on the #h2Create mouseleave event i want to cancel the changingCarosel method(stop the carousel from playing). How can i do this??
$(document).ready(function () {
$("#h2Create").mouseenter(fun...
It seems elements selected using :contains(sub) with sub containing < or > cannot get to their parents.
The following example should illustrate the problem I'm having in both Safari and Camino (Gecko on Mac):
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
</head>
<b...
how to export datagrid item into excel file using Jquery?
...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<div id="popupContact" ...
here is the site : http://www.notrepanorama.com
at the bottom left, i use a jquery plugin to make a slideshow from the flickr stream
the plugin is not mine, and i cannot chage the code (encoded), so i like to capture the click event and make anyclick href to open in a new windows after the list of image is done
it's base on this code : ...
hi expert, i'm using jquery for form validation, where when i click save button, the code is as below
<input type="submit" value="Save" id="button" name="Save" onClick="save(this,'/Web/controller',this.form);">
and the javascript is as below
function save(ele,servlet,formName){
$(document).ready(function() {
$("#fmyFormName").valid...
Hi
Working on an image gallery, but it keeps crashing on me (you control it by clicking on 'left' and 'right') if i click on the images more than 10 times:
http://korrektur.adnuvo.com/hejven/index_test2.html
Here's the code:
$(document).ready(function(){
/*''''''''''' WORKING COPY !!!!! V2 '''''''''''*/
var gal_prev = null;
var gal_...
function exporttoexcel() {
$('#export').click(function() {
$.ajax({
url: 'exportdata.aspx',
cache: false,
success: function(data) {
}
});
});
}
I want to export datagrid item into excel file. when i use aler(data). item is displaying but excel save as and dow...
Still trying to learn the basic of jquery so in the weekend I started looking on simple rewriting of links in greasemonkey. The script is working but it's not looping.
It just take the url from the first .img and and write it into all the other .img instead of getting the each link and write it into the same element. Not sure if it made ...
Hi,
I am using the jQuery.ajax() with some specific data. One of them is an albumid which is generated on the server side if the user choose not to use one of his albums. The problem is that if a user add several photos to a new album then, instead of adding all photos to the same album, it creates several albums with one photo in each.
...
I have this html page which globally exists of div, section, and ul elements (of course some more, but those are the most common)
Now in my fourth list on the page (e.g. below in bold)
<body>
<div>
<header>
<ul id="firstList">
<li>
[..]
<section>
<ul id="secondList">
[..]
<section>
<ul id="thirdList">
[....