jquery on (click) event doesn't work
Event binding on dynamically created elements?
What do parentheses surrounding an object/function/class declaration mean? I'm new to both JavaScript and . In YUI library examples, you can find many uses of this construct:  (function() {     var Dom = YAHOO.util.Dom,     Event = YAHOO.util.Event,     layout = null,         ... })();   I think the last couple of parentheses are to execute the function just after the declaration.  ... But what about the previous set of parentheses surrounding the function declaration?  I think it is a matter of scope; that's to hide inside variables to outside functions and possibly global objects. Is it? More generally, what are the mechanics of those parentheses? AmpScript to select Right or Left characters from a string Is there an AmpScript function that can be used in an equivalent manner to sql left, right and mid functions?   Thanks, Mark Create WiFi hotspot on ubuntu Are there fewer positive integers than all integers? In our 6th grade math class we got introduced to the concept of integers. With all the talk about positive and negative, it got me wondering. Is the amount of elements in $\mathbb{Z^+}$ less than the amount of elements in $\mathbb{Z}$?  Here is how I thought of it. If we have $\mathbb{Z^+}$ and add one element to the "back" of it ($\mathbb{Z}^{\geq-1}$) there are certainly more elements in that new set, so there must be more elements in $\mathbb{Z}$ than in $\mathbb{Z}^+$ but on the other side if we try to express the amount of elements in them "numerically" (In a loose sense of the word) they both have $\infty$ elements.    So what is the right answer? Is there even one?  (Please note I am a bit of a layman when it comes to mathematics)  Edit: About the possible duplicate, I am not looking for a bijection between the two sets, I am looking for if they even have the same number of elements and why a bijection shows that they do/don't I have recently been reading about Quantum Electrodynamics which I found very interesting, but even more confusing.  I understand photons mediate the electromagnetic force and interactions between charges can be described by virtual photon exchange. And that in Quantum Mechanics particles paths can be evaluated by sum over all paths...  An electron travelling from one point to another will take all paths, emitting and reabsorbing virtual photons. Does the electrons take all paths including those that involve faster than light velocities?  Is this question null, Does it mean anything to ask about properties of virtual particles?  Do I have the wrong idea about what virtual particles are? Is the set of all possible binary strings countable? Determine whether the given sets are countable or uncountable. Justify your answers either with bijections or using results/methods. The set of all possible binary strings. Note a binary string is a sequence of 0s and 1s.  If a binary string consists only of 0s and 1s, then is it even possible to find a bijection for it? How to create a soft or symbolic link? Where in Europe can I purchase a car without residency? I am not a resident anywhere and plan to travel for the foreseeable future, mostly in Europe. My country has good visa-free access to most of Europe, so it is conceivable I could remain without any residency for quite some time.  I enjoy driving, and maintaining cars, and I would like to purchase a car somewhere in Europe.  Where, if anywhere, in Europe (or outside of Europe, but with the ability to drive the car in Europe) can I legally purchase and insure a car as a non-resident? I am open to creative solutions like setting up a company to own the car, if the capital and ongoing paperwork requirements for the company are not too onerous.    I am aware that I could save money, get places quicker, etc, by taking trains or flying. I have a passion for cars and driving. Suggesting that I not buy a car is out of scope of this question. What does 5' and 3' mean in DNA and RNA strands? What are 5' and 3' in DNA and RNA strands? Please clarify with some images and please use simple English. Pass commands as input to another command (su, ssh, sh, etc) Prove $\sin^2\theta + \cos^2\theta = 1$ How do you prove the following trigonometric identity: $$ \sin^2\theta+\cos^2\theta=1$$  I'm curious to know of the different ways of proving this depending on different characterizations of sine and cosine. Can the editor for editing tag descriptions get updated to match the normal questions/answers editor? The text editor that is shown when editing tag descriptions still uses the previous behaviour for inserting links and images. Also, the placeholder text for links is still http:// instead of https:// compared to the new editor. Another &quot;nice to have&quot; feature that exists in the main editor is the ability to paste an image from clipboard directly to the text editor without having to press the &quot;insert image&quot; toolbar-icon first. Can it get updated to match the editor we use for questions and answers?  The following screenshot is an example of how it looks if I try to insert a link for a tag description:  In comparison, this is how it looks in the new editor: Convert string to Title Case with JavaScript Is there a simple way to convert a string to Title Case? E.g. john smith becomes John Smith. I'm not looking for something complicated like , just (hopefully) some kind of one- or two-liner. This is difficult for me to explain, but how do I put words over a symbol? For instance, I want to add words over an equal sign. Anyone know the command/syntax for that?  Also adding ^ doesn't cut it..., I want the text to appear ON TOP. How to invite friends to Stack Overflow, Server Fault and Super User? Since we're all into this OpenID thing, I think it would be really useful (and quite easy) to implement a friend invitation feature that grabs a list of friends from one's webmail contact list with an option to choose who to invite to SO, SF or SU. Something in the line of Facebook's friend invitation and recommendation feature. How can one differentiate between Dr. (PhD) and Dr. (MD or DO)? I have a very simple question. When I do this:  \catcode`\@=0 \catcode`\\=11 @mycommand{a} @catcode`@\=0 \catcode`\@=11   It works perfectly and calls \mycommand correctly. However, when I try to define \mycommand with similar trickery:  \newcommand\mycommand[1]{   \catcode`\@=0   \catcode`\\=11   @textbf{Hello #1}   @catcode`@\=0   \catcode`\@=11 }   compilation stalls and gives me the * prompt. If I give it Ctrl+D, it terminates without producing any output. Indeed, it seems that changing the catcodes inside a command has no effect whatsoever, because the following works perfectly (whereas, from my understanding, it shouldn't):  \newcommand\mycommand[1]{   \catcode`\@=0   \catcode`\\=11   \textbf{Hello #1} }   Can anybody please explain to me what's happening? How does carbon dioxide or water vapour absorb thermal infra red radiation from the sun? We are all told at school water vapour and carbon dioxide are the top two greenhouse gases, and that they absorb thermal infra red radiation, trap heat and warm up the Earth. My question is how do they do that? Why can't Oxygen or Nitrogen or any other gas not absorb infra red radiation as well as water vapour or CO2? I am looking for a injective cochain map $\psi: C^*\rightarrow D^*$ such that the map $\Psi^i$ from $C^i$ to $D^i$ is injective, but the map $\psi^*$ from  $H^i(C^*)$ to $H^i(D^*)$ is not injective for any $i\geq0$. I just asked my first question on stackoverflow and I'm really impressed that my question seems to be answered sufficiently already! See:    The issue I have is that the last two answers combined would provide the most complete answer. What's the proper way to go about combining them, marking the question answered, and giving credit where credit is due?  Thanks big time guys for saving us all from experts exchange hell!  Edit: Wow, 5 responses in 5 minutes. I think what makes the most sense is that I create my own answer out of the two. I don't think the second part of my question was answered though.  What is the proper way to give credit to the 2 answers that I'm combining? Is an upvote for each sufficient?