I had made one function for making pagination ,sorting and  listing all in one and that function I call on load of page of body like  &lt;body onload='MYFUNCTION(parm1,param2,param3)'&gt;   Now i want to apply some jquery on the button which shows all document in fancybox which come by that onload but when i try to do on  $(function(){     $(#container).on('click','#button',function(){         //code here for load fancybox and getting all image stuff by ajax      }); });   than i not get that element because it cant find it on page load so what can i do  inshort - how to select element in jquery which is load after page load Thank you..
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.
Standard nomenclature for component types What prefixes should be used on reference designators for components of various types?  I think we can all agree that "R##" refers to a resistor, "C##" refers to a capacitor, and "L##" refers to an inductor.  Beyond that, it appears to be a mishmash of conventions.    I've seen both "IC" and "U" used for chips.   "Q", "T", and "M" have been used for transistors and MOSFETs.  Ordinarily, "D##" is used for diodes, but LEDs and Zeners get special treatment on some boards.    What standards are available for reference, and who endorses them?  JEDEC, ISO, IEEE, and other standardization bodies are welcome references (though I'd prefer an inexpensive standard), but I'm also curious to see what's used at various companies other than my own.    Edit:  What I'd really like to see is a list in an answer here which complies with the standard (even if it's just a quote). Let's say I am building a logistic regression model where the dependent variable is binary and can take the values $0$ or $1$. Let the independent variables be $x_1, x_2, ..., x_m$ - there are $m$ independent variables. Let's say for the $k$th independent variable, the bivariate analysis shows a U-shaped trend - i.e., if I group $x_k$ into $20$ bins each containing roughly equal number of observations and calculate the 'bad rate' for each bin - # observations where y = 0 / total observations in each bin - then I get a U shaped curve.  My questions are:   Can I directly use $x_k$ as input while estimating the beta parameters? Are any statistical assumptions violated which might cause significant error in estimating the parameters? Is it necessary to 'linearize' this variable through a transformation (log, square, product with itself, etc.)? Prove that $ S=\{0\}\cup\left(\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}\right)$ is a compact set in $\mathbb{R}$. Prove that $ S=\{0\}\cup\left(\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}\right)$ is a compact set in $\mathbb{R}$, but $\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}$ is not a compact set.   (Can we use definition of compact set for this problem? ) Can [sic] be used to highlight a punctuational error?    In the sentence below, the bracketed sic would obviously denote that the punctuation preceding it was an error &mdash; that is, a semicolon should supplant the comma. Has anybody ever seen this usage, and would you support it?     The sun is high, [sic] put on some sunblock. How to carry cologne bottles in hand luggage and prevent losses? Show f(x) is a Lipschitz function Let $(X,d)$ be a metric space and $ a \in X $ Show that $f(x) = d(x,a)$ is a Lipschitz function from X to $\Re$ Use this fact to show $S$ is an open subset of $X$: Let $(X,d)$ be a metric space and $a \in X, r &gt; 0.$ Let $S$={$x \in X : d(a,x) &gt; r$}  &gt;Lipschitz Defn:  Let $f$ be a function from $(X,d)$ to $(Y,\rho)$ $f$ is said to be Lipschitz if: $\exists$ K $\geq$ 0 s.t. $\rho( f(x_1) , f(x_2) ) \leq$ Kd($x_1$,$x_2$) $\forall$ $x_1 x_2 \in X$  &gt;Continuity Defn:  Let $(X,d)$ and $(Y,\rho)$ be metric spaces, and $f: X \to Y$ Then $f$ is continuous $iff$ f$^{-1}$($B$) = { $x \in X : f(x) \in B $} is an open subset of $X$, whenever $B$ is an open subset of $Y$  &gt;Triangle Inequality for a Metric:  $d(x,z) \leq d(x,y) + d(y,z)$   My first question is, am I thinking about this correctly? If $f(x)$ is a Lipschitz function, it is uniformly continuous If $f(x)$ is uniformly continuous, it is continuous at every point If $f(x)$ is continuous at every point $\Rightarrow$ the inverse images of open sets are open Hence $S$ is an open subset of $X$.  Secondly, how would you formally construct this? We know $f(x) = d(x,a)$ s.t. $f:X \to \Re$ By definition of Lipschitz we have $\exists  K \geq 0$  s.t. $\rho(f(x_1),f(x_2)) \leq Kd(x_1,x_2) \forall x_1,x_2 \in X$ &amp; since our codomain is $\Re$ $\rho(f(x_1),f(x_2)) = | d(x_1,a) - d(x_2,a) | \leq Kd(x_1,x_2)$ Taking $K=1$ $\ldots$ Help in finishing this off would be appreciated. Thanks. Find the subgroups of A4 I had a question I was hoping for some help on:     Find all of the subgroups of $A_4$   Here is what I know:  $A_4$ is the alternating group on 4 letters. That is it is the set of all even permutations. The elements are:  $(1), (12)(34), (13)(24), (14)(23), (123), (132), (124), (142), (134), (143), (234), (243)$   which totals to 12 elements. Which means, the subgroups should have order 1,2,3,4,6 and 12. The groups of order 1 and order 12 are trivial. I also know the groups of order 2 which are:  $[1,(12)(34)], [1, (13)(24)], [1, (14)(23)]$  but would someone be able to help me find the subgroups of order 3, 4 and 6 and be able to provide a good, easy explanation of how you got to them for me? I'm pretty sure there is no such groups of order 6, but I don't know how to explain why.  Thank you so much for your help in advance, I really appreciate it! Error: class X is public should be declared in a file named X.java Punctuations with relative pronouns Sogou is a Chinese search engine, which can search text, images, music and maps.  Is a comma required before "which" in the above sentence? What would be the associated wavelength of the particle if its velocity is zero? Should I get Enlightened badge? Today I've got 10 upvotes for an answer. Answer was a first answer in the question. I got an Nice Answer badge for this, but no Enlightened badge.  Shouldn't I get both?  is my answer :) Transforms moving around the 3D cursor? I think I accidentally pressed something to make it like this:    See how the XYZ arrows are at the 3D cursor instead of those vertexes I've selected?  How do I fix that? Whenever I select on a vertex or something, those blue, red, green arrows would always be where I selected, now it just keeps going to the 3D cursor. Why is the year NOT displayed in the questions and comments dates? Why is it that the year is never displayed in the questions or comments? Is it because it is the current year? I, and maybe others, wonder. How to create meaningful relationships with NPCs How do I help the PCs to create meaningful relationships with NPCs?   Maybe it is a result of my group playing too many one-dimensional adventures trying to find whatever MacGuffin they are after each week, but most of the time my PCs don't tend to value NPCs too much. Every time they meet an NPC they quickly evaluate what immediate values the NPC can give or tend to ignore them.  What I would really like is to have some good relationships where the PCs actually go out of their way to help NPCs without selfish motivation or even just to try to think of NPCs more and how their actions affect others.  I am not looking for a specific game rules solution to this, but instead techniques to get the players to feel attachment to these fictional characters. How to search something on across multiple sites with a single Google query? I tried   (search term site:stackoverflow.com) OR (search term site:superuser.com) OR (search term site:stackexchange.com) search term site:stackoverflow.com,superuser.com,stackexchange.com search term site:stackoverflow.com site:superuser.com site:stackexchange.com   None of them works. What is the correct way to search? "Welcome to emergency mode!" Think it is a fsck problem My computer booted to a black screen with this error message.  Welcome to emergency mode! After logging in,type "journalctl -xb" to view    system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to    try again to boot into default mode.   journalctl -xb snippet (what I think is wrong):  -- Unit systemd-fsckd.service has begun starting up. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1 contains a file system with errors, check forced. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1: Inodes that were part of a corrupted orphan linked list found. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: (i.e., without -a or -p options) juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: fsck failed with error code 4. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: Running request emergency.target/start/replace juli 09 15:40:16 kim-SSD-Sationary systemd[1]: systemd-fsck-root.service: main process exited, code=exited, status=1/FAILURE juli 09 15:40:16 kim-SSD-Sationary systemd[1]: Failed to start File System Check on Root Device. -- Subject: Unit systemd-fsck-root.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel --  -- Unit systemd-fsck-root.service has failed. --  -- The result is failed. juli 09 15:40:16 kim-SSD-Sationary systemd[1]: Unit systemd-fsck-root.service entered failed state. juli 09 15:40:16 kim-SSD-Sationary systemd[1]: systemd-fsck-root.service failed. juli 09 15:40:16 kim-SSD-Sationary systemd[1]: Starting Remount Root and Kernel File Systems... -- Subject: Unit systemd-remount-fs.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel   I ignored other errors like: ACPI PCC probe failed, nvidia not proprietary, etc.  I can access my PC by pressing Ctrl+D , but it is annoying. Would you please explain the difference between these two sentences?     Spain ceded (or gave) Puerto Rico to the United States. Since then, Puerto Rico has been a U.S. territory.      Spain ceded(or gave) Puerto Rico to the United States. Since then, Puerto Rico was a U.S. territory.   I am stuck between 'has been' and 'was' in the above sentences. Undefined reference error for template method Dependence of Friction on Area Is  really independent of area? The friction force, $f_s = \mu_s N$. The equation says that friction only depends on the normal force, which is $ N = W = mg$, and nature of sliding surface, due to $\mu_S$.   Now, less inflated tires experiences more friction compared to well inflated tire. Can someone give clear explanation, why friction does not depend on area, as the textbooks says? Last months I have lots of referrer spammers in my GA statistics. Their count is ~10x higher than count of legit visitors (my site is not very popular yet). I've turned on an option to hide known spammers in GA settings, but it didn't help at all. It seems these spammers are using scripts to spam directly to GA (i.e. they are not logged in my IIS).  Is there anything I can do to stop these spammers?    UPD 10 months later, and they started spamming using fake target page names... and Google is still doing nothing about it.