I am newb with jQuery and would appreciate your help.  I am struggling a bit with jQuery DOM manipulation, where I have an &lt;input&gt;, and .on("blur") it updates the DOM, by removing the &lt;input&gt;, and inserts a &lt;div&gt; with the &lt;input&gt; value, and when you click on the &lt;div&gt;, it must update the DOM, by adding back the &lt;input&gt; with the value of the &lt;div&gt;.   When I click on  the &lt;div&gt;, nothing happens. Any Ideas?  My current code:    $(document).ready(function() {    var inputValueByClassName = null;    $(".divInput").on("click", function() {     alert("clicked!")     $(".divInput").replaceWith($('&lt;input type="text" class="textInput&gt;'));     $(".divInput").html(inputValueByClassName);   });    $(".textInput").on("blur", function() {     inputValueByClassName = $('input[type="text"].textInput').val();     console.log(inputValueByClassName);     $(".textInput").replaceWith($('&lt;div class="divInput"&gt;' + inputValueByClassName + '&lt;/div&gt;'));   }) }); &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt; &lt;input type="text" class="textInput" value="123"&gt;&lt;br&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.
Extra slash added to the chat room URLs in the side bar There is a extra slash added to the chat room URLs in the side bar. This is not causing any redirection issue or 404 not found error. Just observed it and want to notify to the development team about this. Seems it is not a bug, but that can . Currently the following URLs are binded against the chat rooms in the side bar.  Tavern on the Meta https://chat.meta.stackexchange.com//rooms/89  The Fire Department https://chat.meta.stackexchange.com//rooms/1181   GIF for the reference: So all wizards get an invitation to Hogwarts at 11... How do they know whom to invite?  If a wizard is Muggle-born, then nobody would know about their existence.  Or do they register some weird magical stuff being done by them before 11? How do I change the screen resolution using Ubuntu command line? I installed Ubuntu and the resolution of the desktop is so big that it only shows about 50% of the screen, but is shows up normal while using command line.   What should I type in the command line to change the desktop screen resolution? What is the name for the grammatical figure, where the present tense is substituted for a past event? I am preparing a book for publication which contains the following passage:     Stromberg in Religious Liberalism in Eighteenth-Century England   (1954) noted that 'the critical moment in the emergence of a positive   spirit of reform...consisted in the awareness of evil as being social   and remediable. It begins about 1750.'   My proof reader (my wife) has picked this out suggesting it should be the past tense. However if I say It began about 1750 it seems to convey too much certainty about the exact date. I just want to convey an impression of it being something which emerges in the mid-eighteenth century. I believe use of the present tense is the way to go.   But what is this artifice called, this use of the present to convey mild uncertainty? Entering Unicode characters in LaTeX How do I enter Unicode characters in LaTeX?  What packages do I need to install and what escape sequence do I type to specify Unicode characters in an ASCII source file? Topological/Geometrical justification for $\text{CFT}_2$ being special It is known as a fact that conformal maps on $\mathbb{R}^n \rightarrow \mathbb{R}^n$ for $n&gt;2$ are rotations, dilations, translations, and special transformations while conformal maps for $n=2$ are from a much wider class of maps, holomorphic/antiholomorphic maps. I was wondering to know if there is any topological or geometrical description for this.   To show what I mean, consider this example: in $\mathbb{R}^n$ for $n&gt;2$ interchanging particles can only change the wave function to itself or its minus. It is related to the fundamental group of $\mathbb{R}^n-x_0$ ($x_0$ is a point in $\mathbb{R}^n$ and $\pi_1(\mathbb{R}^n-\{x_0\})=e$ for $n&gt;2$) but this is not true for $n=2$.   I want to know whether exists any topological invariant or just any geometrical explanation that is related to the fact that I mentioned about conformal maps on $\mathbb{R}^n$. What is the correct name for a "product function" on a monoid? Let $m\in \mathbb{N}$ and $c_1,c_2,\ldots,c_m \in \mathbb{R}_+$. Show that $$\lim_{n\rightarrow \infty} \sqrt[n]{c_1^n+c_2^n+\ldots+c_m^n} = \max\{c_1,c_2,\ldots,c_m\}$$  My attempt: Since $$\lim_{n\rightarrow \infty} \sqrt[n]{c_1^n+c_2^n+\ldots+c_m^n} \leq \lim_{n\rightarrow \infty}\sqrt[n]{\max\{c_1,c_2,\ldots,c_m\}} = \lim_{n\rightarrow \infty} \sqrt[n]{n}\sqrt[n]{\max\{c_1,c_2,\ldots,c_m\}}=\lim_{n \rightarrow \infty} \max\{\sqrt[n]{c_1^n},\sqrt[n]{c_2^n},\ldots,\sqrt[n]{c_m^n}\}=\lim_{n \rightarrow \infty}\max\{c_1,c_2,\ldots,c_m\}=\max\{c_1,c_2,\ldots,c_m\}$$  it follows that $\lim_{n\rightarrow \infty} \sqrt[n]{c_1^n+c_2^n+\ldots+c_m^n}$ is bounded, but I don't think it's monotonically decreasing, at least I can't prove this. Can anybody tell me whether the approach I have chosen is a good one, whether what I have done is correct and how to finish the proof? How can I change the master volume level? Using this code  [DllImport ("winmm.dll")] public static extern int waveOutSetVolume (IntPtr hwo, uint dwVolume);  waveOutSetVolume (IntPtr.Zero, (((uint)uint.MaxValue &amp; 0x0000ffff) | ((uint)uint.MaxValue &lt;&lt; 16)));   I can set the wave volume but if the master volume is too low this won't have any effect.  Thanks for any help. Cannot add custom launcher to Ubuntu Dock ('Add to Favorites' option does not show up) I have a custom .desktop file: [Desktop Entry] Type=Application Terminal=false Icon[en_US]=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png Name[en_US]=IntelliJ Exec=/home/alex/bin/idea-IC-173.4127.27/bin/idea.sh Name=IntelliJ Icon=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png  Output of ls -lha .local/share/applications/intellij.desktop: -rwx--x--x 1 alex alex 248 Dez 30 10:54 .local/share/applications/intellij.desktop  Answers posted to a previous question () don't work for me. I can find this launcher in Activities and I can double click on that file and IntelliJ will start. Nevertheless, I cannot add this launcher as a favorite to the dock. The option does not show up. When there are X New Questions, the views don't update untill you refresh the page Proof of continuity of Thomae Function at irrationals. In :  $$ \begin{align} t(x) = \begin{cases} 0 &amp; \text{if $x$ is irrational}\\ \frac{1}{n} &amp; \text{if $x = \frac{m}{n}$ where $\gcd(m,n) = 1$} \end{cases} \end{align} $$  I can prove the discontinuity at rational $b$ by taking a sequence of irrationals $x_n$ which converge to $b$.   But while going through an argument for continuity at irrationals.  I found this in a book.      On the other hand if $b$ is an irrational number and $\epsilon &gt; 0$   then there is a     natural number $n_0$ such that $1/n_0 &lt; \epsilon$.   There are only finite number of rationals with denominator less than   $n_0$ in the interval $(b-1,b+1)$. Hence we can find a $\delta &gt; 0$   such that $\delta$ neighbourhood of $b$ contains no rational with   denominator less than $n_0$.   I understand the rest of the proof. But I am unable to prove the emphasized text. Although I find it intuitive. Bake Simple Deform animation into mesh for Unity3D export? I'm trying to use a .blend file with a keyframe animation on the angle of a Simple Deform modifier in Unity3D. Unity3D however does not know how to handle modifiers and hence cannot play the animation.  How can I bake/save the animation to the .blend file so that Unity3D can play it? Why 220V and 110V? Why did the industry choose these seemingly unintuitive values of 110V and 220V for the mains AC? Is there a physical reason why they aren't simply 100V and 200V? Finding all differentiable $f(z) = u(x) + iv(y)$ in $\mathbb{C}$ where $u(x),v(y)$ are real valued functions.   I’m not sure what to do. Would $f$ be differentiable simply if and only if both $u$ and $v$ were differentiable?   My thinking is that if the limit $$ \lim_{h \to 0}\frac{f(z+h)-f(z)}{h} $$  exists then it would be equal to  $$ \lim_{h \to 0}\frac{u(x+h)-u(x)}{h} + i\lim_{h \to 0}\frac{v(y+h)-v(y)}{h} $$  and therefore would exist if they existed. But that doesn’t seem quite right.  I also thought about using Cauchy-Riemann equations, but seeing that I’m trying to find ones that are differentiable rather than those that aren’t, I thought they wouldn’t be of much help. Problems with french accents automatically understood by LaTeX What was the galaxy formation Rust saw before confronting Erol Childress? What was the galaxy formation Rust saw before confronting Erol Childress in  S01E08?  It was weird like out of the series. I guess it was some sort of hallucination, a product of Rust's madness or addiction. I'm considering taking a loan on my 401k in order to pay off and close 2 credit cards.  I have approximately 30 years until I consider retiring.  The amount of the loan will be $1700 which is less then 20% of my current 401k balance.  I will continue to put 9% of my paycheck into a Roth 401k, and my employer matches 9%.  The loan will be paid back at 3.25% (to myself) and does have $183 in fees.  There are 2 cards I will pay off and close if I follow through with this plan.  One card is 17.9% interest with roughly a $650 balance.  The other is 23% (ish) with roughly a $1,025 balance.  Both of these cards do have an annual fee associated with them, I used them to rebuild my credit and have a newer, lower interest, no fee card that I will keep active for emergencies.  Would it be advantageous for me to pay off these two credit cards and cancel them with a 401k loan? When and why is the [featured] tag removed by the Community user? Direction of friction for object that rolls with slipping Let's say you hit a cue ball with a pool stick that causes an impulse. If the pool stick hits the ball above the ball's center of mass, is the direction of friction different than if the pool stick hits the ball below the center of mass? What determines the direction? Assume the ball is rolling with slipping.