Re: [jQuery] click event is not working

2010-01-07 Thread Charlie Griefer
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));

[jQuery] click event is not working

2010-01-07 Thread CreativeMind
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

[jQuery] Click event outside of an element

2009-11-20 Thread Keysher
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(){

Re: [jQuery] click Event Problem with appended html element

2009-11-07 Thread Leonardo K
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

[jQuery] click Event Problem with appended html element

2009-11-07 Thread ndes
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

[jQuery] Click event not working?

2009-08-27 Thread Kris S
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

[jQuery] click-event-handler for dynamically created a-elements?

2009-08-20 Thread Audrey A Lee
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

[jQuery] Click event to load a new page

2009-08-06 Thread paul.mac
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

[jQuery] click event firing twice in Firefox

2009-06-08 Thread Bill
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

[jQuery] Click event on dynamically-generated link

2009-06-04 Thread fredriley
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 "

[jQuery] Click event not fired when hide() called by blur()

2009-05-24 Thread cohq82
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,

[jQuery] Click-Event in Options/defaults

2009-05-15 Thread Geuintoo
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

[jQuery] Click event is not captured by jQuery after the link to click is rendered by AJAX through jQuery

2009-03-23 Thread tadatoshi
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?

[jQuery] click event and window.location problem in safari

2009-02-27 Thread introvert
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; })

[jQuery] CLick event for Select Box not supported by IE

2009-02-04 Thread Pedram
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

[jQuery] click event

2009-02-04 Thread jq noob
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

[jQuery] click Event not working on first binded element on IE after one click

2009-02-01 Thread shahku...@gmail.com
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) {

[jQuery] Click event fires only once with SImpleModal

2008-12-10 Thread Ron
Hi, So I have the following code:

[jQuery] Click event fires only once with SimpleModal

2008-12-10 Thread Ron
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

[jQuery] Click event broken by AJAX - explain please?

2008-12-06 Thread donb
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

[jQuery] Click event for anchor tag goes to url in href attribute

2008-09-24 Thread cnu
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

[jQuery] click event bug?

2008-07-07 Thread mattithjah
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

[jQuery] Tutorial: Change div content with jQuery (click event)

2008-06-09 Thread Fahad
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

[jQuery] Click event calls twices

2008-01-18 Thread fshuja
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

[jQuery] click event is not listening from .html() output

2008-01-02 Thread webophir
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

[jQuery] Click event not working...

2007-08-28 Thread Andy Matthews
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('

[jQuery] click event and z-order

2007-04-25 Thread Stefan Kilp [sk-software]
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

[jQuery] Click event leaking?

2007-04-10 Thread Mika Tuupola
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