http://docs.jquery.com/Events/live
On Thu, Jan 7, 2010 at 2:01 PM, CreativeMind wrote:
> hi,
> i'm appending a child div in a parent div. parent div has already
> child div's which have classes ws_c1 and plus.
>
> $('').addClass('ws_c1').addClass('plus').appendTo($
> ('#'+'parentdiv'+counter));
hi,
i'm appending a child div in a parent div. parent div has already
child div's which have classes ws_c1 and plus.
$('').addClass('ws_c1').addClass('plus').appendTo($
('#'+'parentdiv'+counter));
but when i try to do this
$(".ws_c1.plus").click(function() {alert('test');});
It works on other ch
Hi!
I am newbie in JQuery. I want to catch click event outside and
specified class.
For example, I have a div with class "classname", and I want to attach
some actions when I click outside, in the rest of the page.
I tried with this (to get the classname where I click):
$('*').click(function(){
Look the live event: http://docs.jquery.com/Events/live#typefn
On Sat, Nov 7, 2009 at 10:49, ndes wrote:
> Hi! I was wondering if i made something wrong or this dont works in
> general. I have a drop down list that "onChange" loads some data an
> pops a list of img+text
>
> $('#selectDisplay').c
Hi! I was wondering if i made something wrong or this dont works in
general. I have a drop down list that "onChange" loads some data an
pops a list of img+text
$('#selectDisplay').change(function(){
.
//LOOP
$("#btnDisplay").append(''+respObj.jsonarray[i]['name']
+'');
.
});
I also h
I'm trying to execute a function "animate_next()" when a "div" element
is clicked, but it isn't working. Here is what it looks like..
$('#playground').click(function(){animate_next();});
If I put..
$('#playground').ready(function(){animate_next();});
..then it will work fine.
Here is the "div
Hello,
I've been working with jQuery about 20 hours now.
I like it.
I am looking for a demo of putting an a-element inside a div-element.
This seems to work:
$("#div99")[0].innerHTML = "I am in div99";
I'd like to handle its click-event.
I wrote this:
$("a#aInDiv99").click(function(event
I want to add a click function to an image to laod a new page
Tried this but it doesn't work
$("#i4").click(function(){
$(document).attr("href","index.php?
whichPage=slider&whichAct=0&subPage=mixnmingle");
});
The whichAct variable in the query string gets changed, which is why
it isn't
Hi all,
I've got a really pesky issue. For some reason, Firefox (both version
2 and 3) is firing multiple click events on checkbox elements. This
isn't happening in IE, Chrome, or Safari. I'm using event delegation,
in the form of a plugin that looks like this:
(function($) {
$.fn.delega
Sorry to post again to this group, but again jQuery has me stumped on
what seems like a simple task. I've a test doc up at
http://www.nottingham.ac.uk/~ntzfr/test/ajax/jquery/xml/jquery_xml3.html
and if you click on any of the static links (class="rlo_link") you'll
get an alert, meaning that the "
Hi all,
I am running into this specific use case and could not figure out how
to do this. To simplify, I have a textarea and a DIV as code below.
The way it supposes to work is when I focus on the textarea by
clicking it, the DIV will show. Otherwise, it will be hidden. Then
when I click the DIV,
Hy
My jQuery-Plugin shoud produce two buttons with a onclick-event.
Problem:
The onclick-event got fired, when I call the plugin, without clicking
on the button.
Why got the click-event fired without clicking the button?
Here my (shorted) plugin:
(function($) {
$.fn.rte = function(opt
Hi,
I wrote a jQuery code to display a link in the side bar (like the ones
such as "About this group" shown in the right pane of this page)
through AJAX.
Then I want the click event on the link to be taken care of by
jQuery.
But that event is not captured by jQuery.
How can I capture the event?
Hello
I have a simple jquery code that will put a link (on click event) on a
division. The link is read from the anchor inside of the div:
$(document).ready(function() {
$("div.picture").click(function () {
var url = $(this).find("a").attr('href');
window.location = url;
})
Dear folk ,
I have a select box with Multiple Options
Such as below
New/Edit
1
2
3
I wanted to bind a Click event to the select box , so when ever we
Click on the Option with the NEW value
alert box appears this is my code
$("select.actions option[value=NEW]").click(function(){
aler
I want to do a onclick event for anywhere in a table row except for a
specific cell. In that cell I want to be able to click a checkbox. I
have any # of rows and 12 columns in the table. I usually use a
something like this
In this instance I also need to allow the user to check on a bunch of
ro
So, I am implementing a page on which words that have hints associated
in the DB are binded with the click event to show the Hint. Initially,
I go through and replace the words with html that goes word
So, then I bind the hint class with the click event,
$(".hint").bind("mouseup",function(e)
{
Hi,
So I have the following code:
Hi,
I have the following code:
$(document).ready(function() {
$('#ctl00_ContentPlaceHolder1_btnRadioHelp').click(function
() {
$('#ctl00_ContentPlaceHolder1_Panel3').modal();
});
});
As you can tell, the server side code is ASP.NET. I
Having read the handful of mentions I could find, the underlying 'why'
is still a mystery to me. I tried stepping through the code with
Firebug but can't make out why it's not working, although I have MADE
it work in this manner:
$("a").click(
function() {
var self = this;
setTimeout
Hi,
I have an anchor tag like delete
I have attached a click event to the tag which does a POST request to
the url by doing
$("a.delete").click(function () {
$.post(url, {"id":id}, function(data){
console.log(data.msg);
});
});
The POST request goes throught, but after that - a GET
i load several tables contents via AJAX. after each load, i do
bind("click", function(){ ... }). this should bind it to all matching
elements of the DOM. but, in all browsers, it does apply only to newly
loaded parts, the others seem to be "disabled" somehow.
this is the real code inside function
detailed tutorial for changing the html content of a div element with
jQuery.
http://frinity.blogspot.com/2008/06/change-div-content-with-jquery.html
--
Fahad
http://frinity.blogspot.com - a blog from a web addict
hi,
i am a newbie to jQuery development. i have .click method on a class.
but it calls twice. i have also used return false; and
e.stopPropagation();
both are not working. i have properly check the whole document and
there is only one occurance of the class.
i have used the same code on simple htm
Hey all,
I am very new to jQuery and becoming a fan of this wonderful
framework.
Please give me an idea of how to solve this problem if you know
howtos.
I am trying to create a form with many checkboxes with 'check all'
link to check all the checkboxes. It's kind of simple and it is
already in
Does anyone have any idea why the click event on my blog isn't working in
IE7?
http://www.andyandjaime.com/
Clicking on the words
Comments :X: - View comments
or
Comments :X: - Be the first to add a comment
should fire this code:
$('.openComments b').click(function(){
$(this).parents('
hi,
if have two elements (a image in a table) which have a click event registered
(on and
element). if i click on the img in the table both click events are
executed. i would expect
that only the first element in the z-order gets the click event.
it there something i missed, how can i chan
In the example below id's (first_li, second_li, etc) are only used
for debugging purposes.
http://www.appelsiini.net/~tuupola/jquery/bugs/click-1.1.2.html
I have nested lists. When clicking li element of parent list it
sibling ul will be hidden and shown. This works as expected.
Problem
28 matches
Mail list logo