I use keyup but it does not fire. I populate innerHtml of div via GetRecords() from webmethod with a table and input text as a search.  I click a button GetRecords fires, then webmethod is called. Then I create a table format on c# as table and input text.  function GetRecords() { PageMethods.GetSavedList(onSucess, onError); function onSucess(result) {     document.getElementById('allRecordsDiv').innerHTML = result; } function onError(result) {     alert("error.."); } }   script side;  $("#mySearchInput").keyup(function () { alert("aasdasd") });   c# side;      [WebMethod]     [ScriptMethod]     public static string GetSavedList()     {         DataTable dt = DBoperation.GetAllRecords();         string html = "&lt;table id= \"savedlist\" class=\"table table-hover\"&gt;";         //add header row         html += "&lt;thead&gt;";         html += "&lt;tr&gt;  &lt;input class=\"form-control\" id=\"mySearchInput\" type=\"text\" placeholder=\"Search..\"&gt;&lt;/ tr&gt;";         html += "&lt;tr&gt;";         html += "&lt;th&gt; &lt;/th&gt;";         for (int i = 0; i &lt; dt.Columns.Count; i++)         {                 html += "&lt;th&gt;" + dt.Columns[i].ColumnName + "&lt;/th&gt;";         }         html += "&lt;th&gt;  &lt;/th&gt;";         html += "&lt;/thead&gt;";          html += "&lt;tbody id=\"mySavedListTable\"&gt;";          //add rows         for (int i = 0; i &lt; dt.Rows.Count; i++)         {             //some rows         }         html += "&lt;/tbody&gt;";          html += "&lt;/table&gt;";         return html;     }
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.
"Within" and "in" when referring to time I know that both can mean "inside" but what I don't have clear is whether both mean the same when talking about time. For example:   The party is in two days = The party is within two days ??   According to this link  within means a limit that can be exceeded, so I'm wondering too if say "the party is within two days max" is correct or redundant. How to view network traffic requested by a specific app? There are lots of discussion on how to see which app is requesting network connection. I have tried the following apps:  tcapturepacket wifi monitor connection tracker   However, none of them was useful. For example, for a short period of time, I uploaded a 30KB pcap file which can be viewed . Still I haven't find out which app is requesting connection and to where it is trying to connect.  I also tried to look at adb logcat, but didn't find useful information. Maybe something has been missed here. Any guess? I was reading a book and this sentence seemed a little odd to me:     At approximately 19.45 hours the two men rose, stretched and yawned. They picked up their gear and stood at the door, ...   What does the first part mean? If it's the exact time, shouldn't it be 19:45? And if it's duration, shouldn't it be "After 19.45 hours"?  (The story here happens at an airbase, if it's of any relevance)    Edit: The book I've quoted is this:   by John Creed.   The author is Irish and the text is set in northern England/Ireland. [See  for more on this topic, as well as better illustrations of the final product.]  I have a document with a lot of short excerpts from another book scattered through it.  Putting frames around them looks a little too 'clean'. How can I get a 'torn page' type effect, to make it look as if the excerpt has been physically torn out of a book?  (I've occasionally seen this done in printed books, although I can't find an example right now.)  I'm not wedded to a very specific look here --  gives plenty of examples. But just to give this some frame of reference, here are some of the nicer ones:          (The strong colouration in this second example is a probably a little too distracting for actual use, although it might be interesting as an option. It's more the edge effect I'm interested in.)    Edit (again): I tried typesetting my text according to the updated versions of the answers below. Here are the results:    Or with interpolated shading: MAC OS for Intel based PCs I have an Intel dual core PC with 4GB of RAM and Graphics card. For on of my student Assignment I need to install Latest possible MAC OS on my system as a secondary OS.  Like on boot it asks me that which OS i want to boot with Win 8.1 or Mac Os..  I searched on the internet and found two conflicting opinion some people said there are few MAC OS Version which can be directly installed on Intel PCs some says there aren't?   I am here to get rid of the confusion that is an official latest possible MAC OS version for Intel based PCs? If not what are my options if I want to run MAC OS on my PC.   Please not that Virtualization options won’t work for me, it has to be working as full OS not an os inside another. How to set a different input method for each app window How can I have a different input method for each app window on windows 8. When I change input language to ENG all app window also uses this method and I don't want that. Like windows 7 that has a different input method for this purpose. thanks 'Possible duplicate' comment not appearing for questions with deleted comments containing the link I posted a comment to a duplicate question on . But I decided to delete it. Afterwards I voted as duplicate and thought a comment would be generated like     possible duplicate of ...   But it didn't. My guess is that the duplicate-comment won't be generated if a comment exists with that link, even if deleted. Moderator actions on items in the review queues don't count towards the review totals When is partial differentiation commutitive Consider a function: $$f:\mathbb R ^2\to\mathbb R $$ when does $$\dfrac {\partial f(x,t)}{\partial t\partial x}=\dfrac {\partial f(x,t)}{\partial x\partial t}$$  Thinking about it in terms of the limit definition of derivative,  and thinking about it as taking slices of surfaces and measuring the slope on the edge, seems to be giving me the feeling that answer is always.  However I have some memories of there being requirements like piecewise continuous, and smooth.   What is the full set of conditions? Get latest Flash player on Ubuntu I know, it's been asked before but I couldn't really get a satisfying answer for some details/backgrounds and I guess it's an important question for many.    Some application seem only to be running with Adobe Flash 15 (or at least I know it does, because I have that version on my Windows Partition).  The official Adobe website says:     NOTE: Adobe Flash Player 11.2 will be the last version to target Linux as a supported platform. Adobe will continue to provide security backports to Flash Player 11.2 for Linux.   Some search on the web like "Ubuntu Adobe Flash 15" or similar does not return any good websites.  I found something that says   (using a "pepper-based version"), and  .   Is it impossible to use this for Firefox too? Would it be a privacy risk?  Are there no alternative projects (I know it's closed source but there are so many so very bright people out there using something similar to wine but just for the plugin....)?  How about the Mac-Version? Shouldn't someone be able to port that one to Linux? I cannot find enable-interactive-search in    gsettings set org.gnome.nautilus.preferences enable-interactive-search true.     I searched using    gsettings list-recursively | grep search     and    gsettings list-recursively | grep interactive     but no such option.  Can you help me disable this in Ubuntu 17.10 and later? We have an Always On "cluster" that consists of 2 servers (there will be more), so one is PRIMARY and other(s) is(are) SECONDARY. The idea was to dedicate SECONDARY as a readonly replica, so it would be a somewhat search-server.  I do know how to set ConnectionString in the C# so it will use SECONDARY replica - just add ApplicationIntent=ReadOnly.  But I don't understand how to address the SECONDARY from stored procedure if I'm using distributed query. Is there a way to set some parameters to the query (like WITH statements or something), so query would use only replica and not the PRIMARY node?  The thing is, obviously from the start server1 is PRIMARY and server2 is SECONDARY, but when server1 fails then server2 is PRIMARY and server1 will be SECONDARY after it get fixed. So I cannot just use the static server2's name.  So far I've managed to get current replica's server name as a variable and use it in EXEC:  -- find first available replica DECLARE @replicaServer nvarchar(50)  SELECT TOP 1     @replicaServer = RCS.replica_server_name FROM     sys.availability_groups_cluster AS AGC     INNER JOIN sys.dm_hadr_availability_replica_cluster_states AS RCS           ON RCS.group_id = AGC.group_id     INNER JOIN sys.dm_hadr_availability_replica_states AS ARS           ON ARS.replica_id = RCS.replica_id     INNER JOIN sys.availability_group_listeners AS AGL           ON AGL.group_id = ARS.group_id WHERE ARS.role_desc = 'SECONDARY'       AND connected_state = 1  -- and query it DECLARE @cmd nvarchar(MAX) = 'SELECT * FROM [' + @replicaServer + '].[somebase].[someschema].[sometable]' EXEC (@cmd)   But that's a shame, I guess. "Important to me" or "Important for me" I cannot easily figure out which one is more appropriate to use:     It's important to me.        It's important for me.   Are they the same? If not, what's the difference? I know someone or the other has asked about disabling ⌘Q, but I like the shortcut, and I use it often. However, I use an email client called Airmail that unfortunately does not keep a service (for notifications) running in the background when it is quitted. However, if I press the close button a service runs in the background, allowing me to receive notifications.  But since I have a habit of pressing ⌘Q all the time to close apps, I was looking into a way I could disable it for only Airmail.  Anyone know of a what to do this? I created a new profile for gnome-terminal and I can switch between &quot;Implicit&quot; profile and the new created profile as you can see in the below image:  Now I wonder how can I switch between profiles using a command-line/script or maybe using a shortcut for this.  Note: Solutions like: gnome-terminal --tab-with-profile=Implicit &amp;&amp; exit   are excluded because I prefer not to close and open another terminal or get another terminal window in this process of changing the profile. A smooth vector field on $S^2$ vanishing at a single point I have two tensors that i must calculate double dot product. matrix A is rank 2  and matrix B is rank 4. I want to multiply them with Matlab and I know in Matlab it becomes: A : B = trace (A*B) but it has one error and it says: Inner matrix dimensions must agree So how can I solve this problem? anybody help me? Thanks Checking the maximality of a principal ideal in $R[x]$ Let $R = \mathbb{Z}_{(2)}$ be the localization of $\mathbb{Z}$ at the prime ideal generated by $2$ in $\mathbb{Z}$. Then prove that the ideal generated by $(2x-1)$ is maximal in $R[x]$. How do I change player name in Minecraft smp in offline mode on a Mac? Load Excel data sheet to Oracle database I am looking for a free tool to load Excel data sheet into an Oracle database. I tried the Oracle SQL developer, but it keeps throwing a NullPointerException. Any ideas?