Hi. I'm new here. And I'm not good in English.      I've got some problem in my code.      Step 1.   I made the first dropdown list.      Step 2.   The second dropdown list would be created when the first dropdown list value is changed.      Step 3.   Alert msg should be shown when a selected value of the second dropdown list is changed.      Step1,2 is OK but Step 3 is NOT.      Please give me the way to solve this problem. thanks!   HTML  &lt;select id="group"&gt; &lt;option value="NONE"&gt;SELECT GROUP&lt;/option&gt; &lt;option value="A"&gt;A&lt;/option&gt; &lt;option value="B"&gt;B&lt;/option&gt; &lt;/select&gt;   SCRIPT  /////// It works /////// $('#group').change(function(event){     var optionName = $('#group').val();    var AA = new Array("1", "2");    var BB = new Array("3", "4");     switch(optionName){           case 'A':        $('#company').remove().end();        var s= $('&lt;select &gt;&lt;/select&gt;').attr('id','company');         $('&lt;option&gt;').attr('value','NONE').text('A').appendTo(s);        for(i=0; i&lt;AA.length; i++)          $('&lt;option&gt;').attr('value', AA[i]).text(AA[i]).appendTo(s);                      s.appendTo('body');        break;    case 'B':        $('#company').remove().end();        var s= $('&lt;select&gt;&lt;/select&gt;').attr('id','company');        $('&lt;option&gt;').attr('value','NONE').text('B').appendTo(s);                         for(i=0; i&lt;BB.length; i++)         $('&lt;option&gt;').attr('value', BB[i]).text(BB[i]).appendTo(s);                   s.appendTo('body');        break;  default:        $('#company').remove().end();        break;  } });  ///// It doesn't work ///// $('#company').change(function(event){    alert($('#company').val()); });
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.
Considering that sound can't travel through vacuum. Adobe Reader and xcolor within a table breaks the line render I'm using the xcolor package to colour the top row in a table. This is displayed properly using PDF viewers such as Preview or Skim (Mac). But using Adobe Reader 10.1.3 (either Windows or Mac) doesn't display the table line properly.   But removing the colouring for the table fixes it. Here is the example that works as expected:  \begin{table} \caption{Table showing Feature 5's Functional Tests} \hspace*{-0.5in} \begin{tabular}[h!]{|p{0.6cm}|p{4cm}|p{5cm}|p{4cm}|p{1.5cm}|} \hline {\bf Test ID } &amp; {\bf Task } &amp; {\bf Expected} &amp; {\bf Actual} &amp; {\bf Outcome} \\ \hline    5.1 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline    5.2 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline    5.3 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline    5.4 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline \end{tabular}  \end{table}   And here is the example with a coloured row:  \begin{table} \caption{Table showing Feature 5's Functional Tests} \hspace*{-0.5in} \begin{tabular}[h!]{|p{0.6cm}|p{4cm}|p{5cm}|p{4cm}|p{1.5cm}|} \hline \rowcolor{gray!25} {\bf Test ID } &amp; {\bf Task } &amp; {\bf Expected} &amp; {\bf Actual} &amp; {\bf Outcome} \\ \hline    5.1 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline    5.2 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline    5.3 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline    5.4 &amp; Something &amp;  Something &amp; Something &amp;  Success \\ \hline \end{tabular}  \end{table}   Removing the \rowcolor{} command replacing it with \cellcolor{} creates the same view. Any idea how to fix this?  I've tried printing it out of Adobe and the lines print fine, but as this will be read on as a soft copy it's pretty important. .  Any idea how to fix this? For $a, b \geq 0$, $0 < x < 1$, show $(a+b)^x \leq a^x + b^x$ Let $a, b$ be positive real numbers. Let $0 &lt; x &lt; 1$. Show that  $(a+b)^x &lt; a^x + b^x$.  The function $f(x) = (a+b)^x -a^x - b^x$ has $f(0) = -1$, $f(1) = 0$ and it seems to be an increasing function. But I am unable to show that it is increasing function. Evaluation of $\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7}$ Evaluation of $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} = $$   $\bf{My\; Try::}$ I have solved Using Direct formula::  $$\sin \frac{\pi}{n}\cdot \sin \frac{2\pi}{n}\cdot......\sin \frac{(n-1)\pi}{n} = \frac{n}{2^{n-1}}$$  Now Put $n=7\;,$ We get   $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7}\cdot \sin \frac{4\pi}{7}\cdot \sin \frac{5\pi}{7}\cdot \sin \frac{6\pi}{7}=\frac{7}{2^{7-1}}$$  So $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} =\frac{\sqrt{7}}{8}$$  Now my question is how can we solve it without using Direct Formula, Help me  Thanks We know the escape velocity from the Earth is 11.2km/s. Isn't it the velocity required to escape from earth if we go normal to the surface of earth? i.e while we derive the formula for the escape velocity from earth we never consider the slanted motion of the object. So when we launch a rocket we need to use very less value of velocity compare to escape velocity to escape from earth because rocket follows a slanted path so curvature of earth has an effect?  If what I said above is right, then how we can say escape velocity is 11.2 km/s? I need to find all group homomorphisms of $S_n\to\mathbb{C}^*$ (for $n\ge2$), and also all group homomorphisms of $A_n\to\mathbb{C}^*$ (for $n\ge2$).  Someone on this site, two years ago, seems to have already asked the same question (). I understand what the questioner says there, but I don't understand it when he says:     Therefore there is exactly one $g:\mathbb{Z}/2\mathbb{Z}\to\mathbb{C}^*$, so all elements of $a\in\mathbb{C}^*$ give us $\operatorname{ord}(a)\mid g[\mathbb{Z}/2\mathbb{Z}]$, so $a$ can only be $-1$ or $1$. Now we know that $f:S_n\to\{-1,1\}$ &hellip;   What is he saying there? And how to go on from there? (I do not understand the answer given either &hellip;)  I hope that someone here can help me further. (And if I'm not allowed to ask this question because is has already been asked two years ago, please tell me what to do instead).  Thank you in advance! Proving an infinite number of primes of the form 6n+1 The proofs given on other sites weren't that clear and used different methods that I have yet to learn.    Prove that there are an infinite number of primes of the form 6n+1.  The hint that was given was: Let p = p1, p2, ..., pk + 1, where p1 = 2, p2 = 3,...pk are the first k primes.  Show that p is prime.  (p1 means p sub 1, p2 means p sub 2, and pk is p sub k.  Wasn't sure how to write it on this.)    Can someone explain this hint on how they came about of p1 = 2, p2=3, etc, and prove this please?    Also, how would the proof change if the form changed?  ("Prove that there are infinite number of primes of the form....") this is my first question on PhysicsSE (I'm already an user of MathSE).   I'm a mathematics students trying to understand Faraday's law, that is   $$\varepsilon= -\frac{d \Phi_B}{dt}$$  where $\varepsilon$ means electromotive force and   $$\Phi_B=\iint \mathbf{B}\cdot d\mathbf{S}$$   means flux of magnetic field. As my textbook points out, there is an interpretation problem here: if the change in magnetic flux is due to movement of the conductor, then free charges in it are subject to Lorentz force, which then causes a current. On the contrary, if the conductor holds steady in a changing magnetic field, the induced current must be explained in terms of an electric field $\mathbf{E}$, described by the equations   $$\begin{cases} \nabla \cdot \mathbf{E}=\frac{\rho}{\varepsilon_0} \\ \nabla \times \mathbf{E} = - \frac{\partial \mathbf{B}}{\partial t}\end{cases}.$$  Question Do those equations hold if we have a moving conductor in a stationary magnetic field? I guess not: this would mean $\mathbf{E}=\mathbf{0}$. How to solve this? Can I publish a feed of my Meetups to appear on my Google Calendar? I'm a bit of a Meetup junkie so I'd like to automate the appearance of any Meetup I RSVP to automagically appear on my Google Calendar. Why can't the "Launcher" Icons be made smaller? At the smallest setting, they are still 4 times bigger than they need to be on a 10" Netbook. The Icons in the "Top Panel" are much smaller and we users don't have a problem selecting them. Significance of $\sqrt[n]{a^n} $?! There is a formula given in my module:  $$ \sqrt[n]{a^n} = \begin{cases}  \, a  &amp;\text{ if $n$ is odd } \\  |a| &amp;\text{ if $n$ is even } \end{cases} $$  I don't really understand the differences between them, kindly explain with an example. Diagram of an artificial neural network Showing that $\gamma = -\int_0^{\infty} e^{-t} \log t \,dt$, where $\gamma$ is the Euler-Mascheroni constant. I'm trying to show that  $$\lim_{n \to \infty} \left[\sum_{k=1}^{n} \frac{1}{k} - \log n\right] = -\int_0^{\infty} e^{-t} \log t \,dt.$$  In other words, I'm trying to show that the above definitions of the Euler-Mascheroni constant $\gamma$ are equivalent.  In another post here (which I can't seem to find now) someone noted that  $$\int_0^{\infty} e^{-t} \log t \,dt = \left.\frac{d}{dx} \int_0^{\infty} t^x e^{-t} \,dt \right|_{x=0} = \Gamma&#39;(1) = \psi(1),$$  where $\psi$ is the digamma function.  This may be a good place to start on the right-hand side.  For the left-hand side I was tempted to represent the terms with integrals.  It is not hard to show that  $$\sum_{k=1}^{n} \frac{1}{k} = \int_0^1 \frac{1-x^n}{1-x} \,dx,$$  but I'm not sure this gets us anywhere.  Any help would be greatly appreciated. ISP blocking port 25 Caption above subtables with subcaption package breaks numbering of following table Characterizing all ring homomorphisms $C[0,1]\to\mathbb{R}$. What do Family Tree Maker users do, now that FTM has been discontinued? I was considering purchasing Family Tree Maker only to find it has been discontinued.    What do they plan for a replacement ? What is the difference between AOSP and AOKP? How to delete a full stop on reference ending According to APA rules, after each reference there must the digital object identification (doi). I use JabRef as a reference manager and for some reason, if I put an article doi on its "doi" field, it won't show up after the build on my editor, but if I put the doi on its "note" field it shows up. However, it's adding a period after the note field. I need a way to have the reference without an ending period.  Here's the LaTex document. I use TexPad as my editor.  \documentclass[12pt,a4paper,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[portuguese, english]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[sort, longnamesfirst]{natbib} \usepackage[strings]{underscore} \bibliographystyle{newapa}  \usepackage{sectsty} \chapterfont{\fontsize{14}{15}\selectfont} \sectionfont{\fontsize{12}{15}\selectfont} \subsectionfont{\fontsize{12}{15}\selectfont} \renewcommand\bibsection{\section*{Referências}} \bibpunct[:\ ]{(}{)}{;}{a}{,}{,}  \title{} \date{} \makeindex  \begin{document}  \cite{aldous-newviewsgrandparents-1995}  \bibliography{/Users/Ricardo/Documents/Ricardo/library2.bib}  \end{document}   It produces this:     Aldous, J. (1995). New views of grandparents in intergenera- tional   context. Journal of Family Issues, 16(1), 104–122. doi:   10.1177/019251395016001006.   I need that last period out.  Thanks. Uniform convergence on two separate intervals