why does my jquery function not working and view source code without the html return from php ok i am not sure why is this happen, can someone tell me the answer to this?   this is my code on my html.  i created a link  &lt;a id="configPage" href="#"&gt;Card List&lt;/a&gt;   from this link, it will lead to this jquery code when click  $("a#configPage").click(function(){ var request = $.get('controller.php',{ action: "configView", subaction: "" }); request.success(function(result) {   $( "#resultContent" ).html(result);   console.log(result); });  request.error(function(jqXHR, textStatus, errorThrown) {   if (textStatus == 'timeout')     console.log('The server is not responding');    if (textStatus == 'error')     console.log(errorThrown);    // Etc });  return false;   });  from the .get, i will go to my php script and return a set of HTML code with forms in it and populate to #resultContent div.  this is working fine. But after my form has been populated in #resultContent div, i have another same link inside that html   &lt;a id="configPage" href="#"&gt;Card List&lt;/a&gt;   this time, that link above is not firing the jquery anymore. I found out that the html return is not showing in my view source code. Is this the reason why is not firing? how to solve this? or i am doing it wrong?  edit: everything from the return HTML is not firing any jquery at all such as form on submit button etc. Is like that whole div with the returned html code is not exist
Event binding on dynamically created elements? I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
sudo: unable to resolve host   I think I need to edit the /etc/hosts file to make an entry for 127.0.1.1 PC name.  But how can I do that if I can't access sudo? It seems to have gone since I updated to 13.10.  I have tried nano, which still doesn't work. How to break the Y axis in an Excel sheet I want to break the Y-axis in an Excel sheet. How can I do that?  For example, suppose I have the data in a range from 0-7000 and then range from 22000-28000. I want a break in the Y axis from 8000-20000. Last night I was grilling chicken thighs on a barbecue and I was told that if there was any pink inside them, they are not safe to eat. My question is twofold:  (a) Is this true?  (b) Is there a way to tell that doesn't involve cutting the thighs open to have a look at the colour? Does a card that affects 'each' creature affect creatures that enter the battlefield after it resolves? My opponent casts , which resolves, then he attacks with his creatures.  In my hand, I have a creature card with Flash. If I summon this creature before the declare blockers step, will it be affected by Predatory Rampage's blocking requirement? My best friend of the moment - 'Essential Grammar in Use' for elementary students by Raymond Murphy - says that 'we normally use -'s for people.'     I stayed at my sister's house. (not the house of my sister).   Then, bellow in the same unit (64) says that 'we use of... for things, places, etc.'     Look at the roof of that building. (not that building's roof)   After that I thought:  Finally!!! I understand the rules for apostrophes!!!  But soon I lost all that naif excitement when I saw other written examples on the internet that were not following those 'rules'.     I've learnt that we can apply apostrophes to ...     one year's pay   and, finally, amazingly enough ... to , which means ANY kind of nouns (I deduce uncountable nouns are also part of the possibilities). This demolishes what is said in the grammar. So, it seems that eventually:     That building's roof -> is valid   So, now I need your help.    1) Can you tell me the rules concerning the apostrophe to show possession in respect to its usage with nouns? Can we really apply to all kind of nouns? e.g. teeth's, vehicle's, Paula's, forest's, manager's, Ireland's, etc     Scotland's worst drivers   Metadata improves information's accessibility       2) Is there a sense that justifies what is written in the grammar: 'we normally use -'s for people'? or it does not make sense at all? How can I install the Social-Engineering Toolkit (SET)? There is this software (SET) from Backtack 5 source that I found out about. But I don't know how to install this thing. Could somebody help me?  Here the link: I know that there exists at least one solution, because $ax \equiv b \mod m \implies ax - b = qm$  Rearranging terms gives $ax - qm = b$, and since $d | a$ and $d | m$, so $d | b$ it can be said that $b \equiv 0 \mod d$.  I implemented Euclid's extended algorithm and have been able to experimentally verify that the claim holds, but I do not see a pattern or how I can begin to show there are exactly $d$ solutions.  def euclid_extended(x, y, i=0):   if y == 0:     print("iteration {0} returns ({1}, {2}, {3}) - base case hit with ({4}, {5})".format(i, x, 1, 0, x, y))     return (x, 1, 0)   else:     (d, a, b) = euclid_extended(y, x % y, i + 1)     print("iteration {0}. ({4}, {5}) =&gt; ({1}, {2}, {3})".format(i, d, b, a - b * (x//y), x, y))     return (d, b, a - b * (x//y)) Can a massless rope accelerate? Is it correct to say e.g. "I like your way of wearing" or "the way you wear looks perfect"?  Is it politely? Is it in use or not? May I use "the way you wear" referring to whole wearings including dress, scarf, hat, bracelet. jewellery, etc?  Thank you for your suggestions in advance. Is the simulation hypothesis outside of science? On the question of the  (i.e. that reality is a simulation), a friend of mine once remarked he didn't accept it on the grounds of . To me (with my admittedly instrumentalist view of science) this seems a misuse of Ockham's razor in that all my friend is really claiming is that it isn't empirically necessary (and hence outside of science).  Is the simulation hypothesis outside of science? If so, then does it pose a problem for scientific realism? If not, is it falsifiable? Is it an empirical question? I know that to better balance paragon and epic level players against similar level monsters, WotC changed the math used for monsters for MM3, and I believe that they changed some of the types of powers they gave monsters.   If I want to update monsters from MM1 or MM2 to be in line with MM3 era monsters, what changes should I make? Problems with booting the system I have yesterday updated packages and today the system cannot boot properly. After seeing the Kubuntu logo there is a black screen which shows repeatedly.     Stopped User Manager for UID 121.      Removed slice User Slice of gdm.      Created slice User Slice of gdm.       Starting User Manager for UID 121...      Started Session c3 of user gdm.       Started User Manager for UID 121.   Please see the screenshot below IllegalArgumentException or NullPointerException for a null parameter? I have a simple setter method for a property and null is not appropriate for this particular property. I have always been torn in this situation: should I throw an , or a ? From the javadocs, both seem appropriate. Is there some kind of an understood standard?  Or is this just one of those things that you should do whatever you prefer and both are really correct? How do I capture the moon and its surrounding context? I wanted to photograph the full moon against a beautiful deep blue sky. I ended up with blown-out highlights of the moon:    So I switched to spot metering and captured the moon, losing the blue sky in the process:    I want a single photo that shows both the moon and the surrounding context (in this case, the blue sky). Doing an exposure fusion in Photomatix Essentials did not help:    Nor did HDR fusion (again in Photomatix):    Notice that the detail in the moon was lost in both cases, and the sky was also messed up in both cases: exposure fusion lost the beautiful blue color, while HDR created more texture than was actually present in the sky. I toggled Photomatix's option to remove ghosts, but that didn't help, either.  How do I photograph the moon together with its surrounding context (in this case, the blue sky, but in other cases, a tree, buildings, etc) without blowing highlights or shadows? I'm using a Sony NEX-5R, with the longest focal length lens I have, and with manual focus when needed.  Thinking I should fuse the photos manually, I tried opening the images as layers in Acorn, with the darker photo on top and with opacity set to 50%, and tried all 15 - 20 blending modes (normal, dodge, lighter, darker, multiply and so on), but none of them seemed to work. I'm afraid I don't know enough to use layers effectively. What blending mode and opacity and order of layers should I use for this task?  I don't have Photoshop, but do have Lightroom 5, Acorn and Nik Collection.  (In case you are about to recommend software, please note my requirements: I use a Mac, I would be willing to pay $20-30, and I don't want to use command-line software.) Opposite of caregiver I want to write a book about the unfair expectations of a caregiver. A caregiver refers to somebody to looks after somebody else.  What is the term for that 'somebody else'.  'Patient' doesn't seem all encompassing. A question about E12 series resistors I'm trying to calculate E12 resistor series myself.  Above is an illustration of the idea where such equation can be written:  x = r3 + r3 * %tol = r4 - r4 * %tol  form that we can derive:  r4 = r3* [(1 + %tol)/(1 - %tol)]  hence in generalized form we can write (%tol = 0.1 for E12 series);   r(i+1) = ri* [(1 + %tol)/(1 - %tol)]  But when I iterate the above formula in a for loop I obtain the following results for the first resistor values:  1.0000    1.2222    1.4938    1.8258    2.2315    2.7274    3.3335    4.0743    4.9797    6.0863    7.4388  Then I take [(1 + %tol)/(1 - %tol)] = 1.2 rounded value instead of 1.222222 and write the formula as:  r(i+1) = r(i)*1.2  But again when I iterate the above formula in a for loop I obtain the following results for the first resistor values:  1.0000    1.2000    1.4400    1.7280    2.0736    2.4883    2.9860    3.5832    4.2998    5.1598    6.1917  But the real values for E12 should be as:  1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8  What am I doing wrong here? Create a local texmf tree in MiKTeX Biblatex ieee incorrect display of volume and issue number Numerical Approximation of Differential Equations with Midpoint Method Co-Buyer Automobile As a co-buyer on an automobile, can the other party take full possession? Both parties names are listed as the Purchaser's. Only one purchaser signed the retail order for the motor vehicle, and if so, how can one become a no co-buyer?