I working on an app that has different select box that are cloned. I used the first selectbox to clone the second one I want to get the id of the generated select box. it is one the first selectbox that works second one does not triger event when selected.   var selectid = "select-test"  $("#addbtn").on("click", function(e) {   e.preventDefault();    selectid = "select-" + Date.now();    var testdone = $('#testdone')     .clone().val('') // CLEAR VALUE.     .attr("id", testdoneid)     .appendTo("#appendcontainer");    $("#" + testdoneid + " .select-test").attr('id', selectid); });  $("form select").on("change", function() {   var strChosen = $(this).attr('id');   alert(strChosen); }) &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt; &lt;div id="testdone"&gt;   &lt;select name="tests[]" class="form-control select-test" id="select-test"&gt;     &lt;option value=""&gt;Select Patient Test&lt;/option&gt;     &lt;option value="1"&gt;HIV&lt;/option&gt;   &lt;/select&gt;    &lt;select id="select-3339" class="select-id"&gt;     &lt;option value=""&gt;Select Patient Test&lt;/option&gt;     &lt;option value="1"&gt;HIV&lt;/option&gt;   &lt;/select&gt; &lt;/div&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.
Why didn't James' love and sacrifice for Lily protect her? We know that Harry survived Voldemort's killing curse because Lily loved him so much that she sacrificed herself in an attempt to protect him. This resulted in a very powerful charm that pretty much rendered Harry immune to Voldemort (until Voldemort figured out the work-around). Then there's this passage describing that night:  [Voldemort] was over the threshold as James came sprinting down the hall. It was easy, too easy, he had not even picked up his wand ... &quot;Lily, take Harry and go! It's him! Go! Run! I'll hold him off -&quot; Hold him off, without a wand in his hand! ... He laughed before casting the curse ... &quot;Avada Kedavra!&quot; Harry Potter and the Deathly Hallows Chapter 17: Bathilda's Secret  So James Potter, fully aware that he was sacrificing himself (he said &quot;I'll hold him off,&quot; not &quot;I'll get rid of him&quot;) ran to face Voldemort because of his love for Lily and Harry. This seems to be very similar to how Lily tried to protect Harry from Voldemort even though she knew she would die. It seems to me that the same charm should have been cast upon Lily when James died, but just moments later Voldemort killed her too. Apparently James' sacrifice did not result in a charm that protected Lily, even though he did it from love for her and Harry. Why is this? Was something different in the circumstances? How can I efficiently generate a Set from a List structure? I have a bit of code where I've written a SOQL query that returns a list of SObject records, however I need a Set&lt;Id&gt; structure to pass to another method that I don't have control of (and thus can't change the method signature of).  How can I turn my returned List&lt;SObject&gt; into a Set&lt;Id&gt;? Is the best option just a for loop? I have the following element element(by.css(&quot;span[aria-label='Picker ID, TESTUSER']&quot;)  I want to assure the text on this filed is TESTUSER, so I tried:  expect(element(by.css(&quot;span[aria-label='Picker ID, TESTUSER']&quot;)).getAttribute('value')).toEqual('TESTUSER');  then I got the error: Expected null to equal 'TESTUSER' So I tried: element(by.css(&quot;span[aria-label='Picker ID, TESTUSER']&quot;)).getText().then(function (value) {         console.log(value);       })  And I got this error: Expected '' to be 'TESTUSER'.  How to get the value of this field and expect it is TESTUSER? Producing doc/docx from LaTeX Is there any way to produce doc/docx files from LaTeX? Table with multiple merging This is on Stack Overflow. On Meta I'm able to see what the tags are on the right side of the screen. In fact, I think yesterday or some point earlier today I saw tags on the right side of the screen (I can't screenshot or remember correctly).  It's right above the asked and active heading.  I know this is minor but what happened to it? It might be useful for browsing instead of having to look at the bottom of the question post.    Found an image on Google and it shows the tags on the right side of the screen: The qtree package seems to facilitate the drawing of simple trees only. Is there a way to incorporate:   Multiple roots &amp; Nodes with multiple parents   in a tree in LaTeX? Let $x$ be transcendental over $F$. Let $y=f(x)/g(x)$ be a rational function. Prove $[F(x):F(y)]=\max(\deg f,\deg g)$ Let $F$ be a field and $x$ transcendental over $F$. Let $y=f(x)/g(x)$ be a nonconstant rational function with relatively prime polynomials $f,g\in F[x]$. Prove $[F(x):F(y)]=\max(\deg f,\deg g)$.  My attempt: By replacing $y$ with $\frac{1}{y}$ if necessary we assume $\deg g\geq\deg f$. By the Euclid algorithm we assume $\deg g&gt;\deg f$. Then $\deg g=\max(\deg f,\deg g)$, let $n=\deg g$. Let $R(t)$ be this polynomial $$R(t)=yg(t)-f(t)=\frac{f(x)}{g(x)}g(t)-f(t)$$ Then $\deg R=\deg g=n$ because $n=\deg g&gt;\deg f$. The coefficients of $R(t)$ lie in $F(y)$ and hence $R(t)\in F(y)[t]$. Clearly $R(x)=0$.  Now I only have to prove $R(t)$ is actually the minimal polynomial of $x$ over $F(y)$. I believe the next step is to obtain a contradiction that $R(t)$ being reducible can lead to $f,g$ being not coprime, but I can't figure out how to do that.  P.S. A hint is preferred over a full answer. Suppose we define the following relationship of ordering between propositions in PROP: $$ \phi &lt; \psi := (\models \phi \rightarrow \psi \land \lnot(\models \psi \rightarrow \phi) ) $$ Show that if exists $\phi$ and $\psi$ such that: $$ \phi &lt; \psi $$ Then there is a $\sigma$ such that: $$ \phi &lt; \sigma &lt; \psi $$ I have tried to use valuation to find what $\sigma$ could possibly be, so for all valuations v:  If $v(\phi)=0$ and $v(\psi)=0$ then, since $\models \sigma \rightarrow \psi$, $v(\sigma)=0$  If $v(\phi)=1$ and $v(\psi)=1$ then, since $\models \phi \rightarrow \sigma$, $v(\sigma)=1$  It is impossible that $v(\phi)=1$ and $v(\psi)=0$ since $\models \phi \rightarrow \psi$  If $v(\phi)=1$ and $v(\psi)=0$ then $v(\sigma)$ could be either 0 or 1, and it would satisfy the tautologies, but if:  $v(\sigma)=0$, then the valuation of $\sigma$ would be equal to valuation of $\psi$ for all valuations and thus $\models \psi \rightarrow \sigma$, which is a contraditcion; $v(\sigma)=1$, then the valuation of $\sigma$ would be equal to valuation of $\phi$ for all valuations and thus $\models \sigma \rightarrow \phi$, which is a contraditcion. XMLHttpRequest Origin null is not allowed Access-Control-Allow-Origin for file:/// to file:/// (Serverless) I have connected speakers to the back panel of my computer at work and I would like to have them always enabled (I can switch them off on the speaker casing). However when I connect headphones on the front panel system automatically says that the rear output is unplugged.  I found a solution to disable auto detection with Alsamixer and it works almost ok except the fact that after system restart I need to reconfigure the settings again... How can I set this once and forget about it? I'm just starting to learn LaTeX. I tried typing \begin{equation*}  (math goes here)  \end{equation*}  and I got a whole bunch of errors. It seems LaTeX interpreted the empty line as the equation: when it saw nothing there, I guess it just ended math mode? It then said my other commands needed $'s so I assume that's what happened. When I typed \begin{equation*} (math goes here) \end{equation*}  everything was fine. So I'm confused. If LaTeX sees an empty line in an environment, does it just interpret this as me changing my mind, and deciding not to use the declared environment? What is the difference between const_iterator and non-const iterator in the C++ STL? What is the difference between a const_iterator and an iterator and where would you use one over the other? I improved an edit... but did I actually? I don't know how I did manage to do it.  I just ... Oh wait, did I do it actually? I actually simply approved it! You can see it . Apparently, I made no changes myself.  But now I'm struggling to understand how exactly was I able to do it, because in 79% of cases I am greeted with this message:        and in another 20%, this faked "improve" goes through (while I don't change completely anything) and I can haz a binding approval vote :D  And in other 1%,  it when I clicked improve (now I know ).  So it's definitely a bug, but I can't find the exact way of reproing.  Note: earlier there was actually a bug which allowed me to approve an edit by clicking improve and submitting with no changes, then it was fixed and for some time the message I've shown above stopped me constantly, and now there is another bug Basic desktop actions are not available on Ubuntu 20.04 At what moment will matter falling into a black hole affect its size? Does the mass of matter falling into a black hole affect the size of an event horizon the moment it passes through it, or when it has been incorporated into the singularity? Prove that $\sqrt[n]{n!}$ is increasing and diverges I have to prove that $a_n$ is (strictly) increasing and diverges  $a_n = \sqrt[n]{n!}$ ;  n $\in$  $\ \mathbb{N}$  From sequence I see that $a_n$ increasing to infinitive.  $\sqrt[1]{1!}=1 ,\  \sqrt[2]{2!} \approx 1.41, \  \sqrt[3]{3!}  \approx 1.81 ,...,  \sqrt[n]{n!} $ In a semiconductor memory chip, each bit of binary data is stored in a tiny circuit called a memory cell consisting of one to several transistors. Volatile type.   Suppose an application stored its data in a particular segment on the computers RAM.  How would the CPU know what data to extract and how would it sort through the other data to get to it. If everything in its core level is 0 or 1 its hard to distinguish what purpose 'x' memory has. Why is this trigger finding a null value despite the field being populated? I am getting error:     The argument 2 of the "JSON_VALUE or JSON_QUERY" must be a string literal   ...while trying to pass variable as parameter to JSON_QUERY function. Please help me to resolve it.  DECLARE @cnt INT = 1; DECLARE @cnt_total INT = 1; DECLARE @json NVARCHAR(MAX); DECLARE @json1 NVARCHAR(MAX); declare @str  VARCHAR(200);  WHILE @cnt &lt;= 10 BEGIN     set @str = '$.Seasons[0].Products['+convert(varchar,@cnt)+'].ProductChannels';     set @str = char(39) +@str+ char(39);     PRINT @STR     select @json = json_query(jfile,@STR) from Import.tstjson; --MORE CODE         SET @cnt = @cnt + 1; END   Sample data:  {   "Seasons": [     {       "Season": "12321231",       "Products": [         {           "ProductId": "211",           "ProductChannels": [             {               "ChannelId": 1,               "WeekQuantities": []             }           ],           "ccc": 3,           "Tttt": 4         }       ]     }   ] }