I'm having some issues with  code.  I'm trying to dynamically create images as unordered list items that can be clicked and repeat the process.  However, when I get to the second level, I'm not able to click on the images to get them to generate additional list items underneath.  Can someone tell me what I'm doing wrong here?  I'm able to click on any one of the first three images (all with the same class) and it works; I'm not sure why the second tier wouldn't work.  $(".pic").on('click',function() { var parent = $(this).parent().append("&lt;ul&gt;&lt;li class='child'&gt;&lt;img src='http://www.clipartbest.com/cliparts/9Tp/MAz/9TpMAzbTE.png'/&gt;&lt;/li&gt;&lt;/ul&gt;"); });  $(".child").on('click',function() { alert($(this).parent().attr('class')); var parent = $(this).parent().append("&lt;ul&gt;&lt;li class='child'&gt;&lt;img src='http://www.clipartbest.com/cliparts/9Tp/MAz/9TpMAzbTE.png'/&gt;&lt;/li&gt;&lt;/ul&gt;"); });
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.
Real Size Image Printing To prove Cayley-Hamilton theorem, why can't we substitute $A$ for $\lambda$ in $p(\lambda) = \det(\lambda I - A)$? Cayley Hamilton Theorem states that if $A$ is an $n \times n$ matrix over the field $F$ then $p(A) = 0$.  We note that $p(\lambda) = \det(\lambda I - A)$. Hence, why can't we just substitute $\lambda$ with $A$ and directly prove Cayley-Hamilton Theorem by saying that $p(A) = p(\lambda) = \det(\lambda I - A) = \det(AI - A) = 0$? RX 590 IN Blender and Cycles Render I don't know why, but I cant render anything in CUDA and OptiX but OpenCL work fine. I cant use Cycles render because it's very laggy. I have newest  version of Blender and an RX 590 Red Dragon 8gb. Why does that happen?  How can I turn on my gpu? Which is more appropriate in the following sentence?     "I asked him to not judge her according to (or: based on) her beauty"   vs     "I asked him not to judge her according to (or:based on) her beauty"   or maybe you wouldn't choose either of the above, but something else? How do I join several objects into one? I'm creating side skirts for a truck and I am duplicating the frames I want. The problem is it's making the duplicated object into another object. How do I put it into the same one? Work out the type of c# application a class contained in a DLL is being used by Fred and George stumbled upon the Marauder's map in their first year. They passed it on to Harry while in their fifth year. Also note that, while talking to Harry on the train, Ron described Scabbers as being "Percy's old rat".   Hence, we can safely assume that the twins had the Marauder's Map for about five years. How could they not see Peter Pettigrew on the map, with Percy for first two years and with Ron for the next three years?  How come Harry didn't see Peter? How was Lupin the only one able to see Peter on the map? How can I load a Python module given its full path? Note that the file can be anywhere in the filesystem, as it is a configuration option. Just like if we have any quadratic equation which has complex roots, then we are not able to factorize it easily. So we apply quadratic formula and get the roots.  Similarly if we have a cubic equation which has two complex roots (which we know conjugate of each other) and one fractional root, then we are not able to find its first root by hit &amp; trial.  So my question is like quadratic formula, is there exist any thing like cubic formula which help in solving cubic equations?  For example, I have an equation $$2x^3+9x^2+9x-7=0\tag{1}$$ and I have to find its solution which I am not able to find because it has no integral solution. Its solutions are $\dfrac {1}{2}$, $\dfrac{-5\pm \sqrt{3}i}{2} $, I know these solutions because this equation is generated by myself.  So how can I solve equations like these?  Also while typing this question, I thought about the derivation of quadratic formula, which is derived by completing the square method.  So I tried to apply ‘completing the cube’ method on the general equation $ax^3+bx^2+cx+d=0$ but it didn't help.  So please help me in finding a cubic formula or to solve the equations like given in example by an alternative method. I have two tables in my database:  NEWS table with columns:   id - the news id  user - the user id of the author)   USERS table with columns:   id - the user id   I want to execute this SQL:   SELECT * FROM news JOIN users ON news.user = user.id    When I get the results in PHP I would like to get associative array and get column names by $row['column-name']. How do I get the news ID and the user ID, having the same column name? Can we have a black hole without a singularity? Assuming we have a sufficiently small and massive object such that it's escape velocity is greater than the speed of light, isn't this a black hole? It has an event horizon that light cannot escape, time freezes at this event horizon, etc. However this object is not a singularity.  If a large star's mass were compressed to the size of, say, a proton, it would certainly have these properties but it would still not be a singularity as a proton does have volume.  The reason "physics breaks down" at singularities is because we cannot divide by zero, but as long as the proton-sized object has volume, physics won't "break down", yet we still have an event horizon and an object that is invisible (but not undetectable) from the outside.  I have read the answers to  related question. I'm not sure if they don't address my specific question or if I don't understand the answers. Is there a limit to Rule 0? Rule Zero: All other rules can be changed by the GM.   I appreciate that there is a massive amount of work that goes into being a GM and the last thing that any GM wants or deserves is to have his players constantly questioning everything they do. However, a group I am currently playing with has been having a huge problem with a GM who has been using rule 0 to deny virtually every skill check and give all his custom enemies powers that have either no save or unbeatable DCs. Then, whenever he realizes he has made the fight unwinnable he brings in one of his level 60+ GMPCs to instantly win the fight, making us feel even more helpless.  We try to hold our tongues and not be the dreaded Rules Lawyer, but he keeps pulling out stuff so ridiculous that we have to question it… and every time we do we find that he is either misunderstanding or completely disregarding the rules. When this happens he always jumps immediately to rule 0. He probably cited rule 0 around 6 times in our last session (and we only had one combat encounter). When to use ' (or quote) in Lisp? I want to remotely control my Android device from my PC without rooting it. Is this possible? Getting hyperref to work with \citeyear and \citeyearpar in biblatex Count below a comment is misleading How do I "Show total up and down vote counts" since I'm at 1K rep? How to get the filename without the extension from a path in Python? I vaguely remember a SciFi novel from my younger days, where scientists discover "alternative" forms of power beside electromagnetism.  I do not remember the specific forms, but it was something along the lines of "electrogravity", "magnetogravity" etc. -- you get the idea. If I remember correctly, the effects of these power forms were basically psionic / magic in nature.  Unfortunately I remember very little of the actual plot, and couldn't put it into words with any coherency. Some treachery from within the group of scientists, perhaps some involvement of aliens? I cannot really remember. I just remember I enjoyed the story very much, and would like to re-read it.  The title could be "The fifth column" or similar -- then again I might be confusing two seperate novels.  I know that's not much, sorry. Anyone remembers this? How can I remove a key from a Python dictionary?