I have created a form in a JavaScript and display it in a element. But when I have to submit on that form it doesn't works.  Here's my code:    // This is my javascript for submit.   $('#EncodeGradesForm').submit(function() {   $.ajax({     url: '&lt;?php echo base_url('     grade / encode ') ?&gt;',     type: 'POST',     data: $(this).serialize(),     success: function() {       alert('Submitted!');     }   }); });   var encoding; encoding = '&lt;div class="alert alert-info"&gt;Encoding Grades...&lt;/div&gt;'; encoding = '&lt;form id="EncodeGradesForm"&gt;'; encoding += '&lt;input type="hidden" name="subject_id" value="&lt;?php echo $subjectData['id'] ?&gt;"&gt;'; encoding += '&lt;input type="hidden" name="section_id" value="&lt;?php echo $section_id ?&gt;"&gt;'; encoding += '&lt;input type="hidden" name="grading_id" value="' + grades_id + '"&gt;'; encoding += '&lt;input type="hidden" name="grade_id" value="' + content_id + '"&gt;'; encoding += '&lt;table class="table table-bordered table-border"&gt;'; encoding += '&lt;thead&gt;'; encoding += '&lt;tr&gt;'; encoding += '&lt;td class="text-center"&gt;Student&lt;/td&gt;'; encoding += '&lt;td class="text-center"&gt;Grade&lt;/td&gt;'; encoding += '&lt;/tr&gt;'; encoding += '&lt;/thead&gt;'; encoding += '&lt;tbody&gt;';  for (var i = 0; i &lt; data.length; i++) {   encoding += '&lt;tr&gt;' +     '&lt;td width="90%" class="text-center"&gt;' + data[i].firstname + ' ' + data[i].lastname + '&lt;/td&gt;' +     '&lt;td width="10%" class="text-center"&gt;&lt;input type="hidden" name="student[]" value="' + data[i].id + '" /&gt;&lt;input type="number" name="score[' + data[i].id + ']" class="form-control" style="width: 100px; margib: auto;" /&gt;&lt;/td&gt;' +     '&lt;/tr&gt;'; }  encoding += '&lt;/tbody&gt;'; encoding += '&lt;/table&gt;'; encoding += '&lt;button type="submit" class="btn btn-primary btn-block"&gt;Submit Grade/s&lt;/button&gt;'; encoding += '&lt;/form&gt;';  $('#collapseContent' + content_id).html(encoding);
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.
Can I have multiple Schengen visas for future travels in my passport? I'm a citizen of Ukraine planning on visiting Italy early in October for tourism. Later that month I'm accepted as a speaker at the conference in Prague, Czech Republic. Both countries are members of Schengen agreement and a visa is required for me to visit them. Therefore, I need to visit Schengen countries 2 times and I need to get my visas ASAP (to confirm my talk to the conference organizers, as well as to avoid overpaying for hotels/flight tickets).   I've heard a number of times that a single person can't apply for a Schengen visa if already in possession of one, but I'd like to clarify this. Say, I've got a visa from Italy for the period of October 1st - October 14th. Can I get another one from Czech Republic for October 25th - October 30th before I visit Italy? Would the answer be different if I were to visit the second country (CZ) on October 13th - October 20th, thus, having a single day overlap between these visits. It would be of a tremendous help if you could link to the official documents that prove your point, but I'd certainly appreciate answers even without such links.  Both times I'm going to apply for a short-term tourist visa covering the dates of my travel. If the answer to both questions above is no - would several visits to multiple Schengen countries over a short period of time be a valid reason to apply for a single multiple-entry visa that covers the whole period from October 1st to October 30th from Italy? Can I travel within the Schengen area without a passport if I have my residency permit card? What is the CVE-2014-6271 bash vulnerability (Shellshock) and how do I fix it? Don't delete comments with link to duplicate if they are modified A user just posted his question a second time here on meta after the first was closed as a duplicate. I wrote a comment on the second post, explaining that the answer to his question is in the linked duplicate and that he shouldn't circumvent the closure process by asking a second identical question.  When the second post was closed as a duplicate my comment was automatically deleted. As far as I understand this is a heuristic that removes obsolete comments, which it considers every comment that contains a link to one of the duplicates.  This heuristic is too aggressive and removes comments that go beyond "Duplicate here: link". I suggest that it should be changed to only remove the default duplicate comment, and not any comment that was edited by the owner nor any free-form comment that happens to include a link to the duplicate.  This also triggers for any comment that contains the word "duplicate" and link to any question, not only the question being chosen as duplicate, which makes this much worse. Where to start looking up if there's something wrong with cck field variables? in short: Something in my zen-based custom theme is keeping a couple of cck fields from being display on my page. Basically my question is where to get access to the variables that are supposed to contain the html for the cck fields (which are missing when I was looking them in firebug). Below I explain why I think it's looking up the variables that might bring me closer to a solution  So I made this custom node type (events) with cck fields added. Also made some content using those fields. Added some css and it all displayed fine. Later the taxonomy terms below the title and some metadata bugged me so I followed along with a 'theming cookbook' pdf book that taught me how to make a node-events.tpl.php and simply deleted php variables like $terms. This worked great.     Obviously this also means that all this time, the view permissions of those fields have been checked and also that the display options under 'display fields' have been set to standard all the time. I also ruled out that the issue could be anything else than theme related as my cck fields do show up in a stock Drupal theme. The theme for my site is a zen-based custom theme.   So then even later, after I made a view for this node type and started adding css to that view I noticed at some point that my image field and two other fields are missing. It's hard to tell if they disappeared because of things that I did when creating the view and adding css (which would surprise me) Is $\mathbb{Z}[x]/(x^2+1)$  isomorphic to  $\mathbb{Z}[i]$?   My attempt is that try to define a mapping $g$ from $\mathbb{Z}[x]$ to $\mathbb{Z}[i]$ by $g(f(x))= f(i)$, for $f(x)\in\mathbb{Z}[x]$. If it is possible then $\ker g$ is $(x^2+1)$? Am I on the right track? Please Help. The definite article implying the generic idea of something I know that the definite article "the" can be used to mean a generic idea of something as in "the lion is the king of the animals." In this sentence, the in "the lion" is used to imply the general image of lions, so not specifying a particular lion.   However, I am confused in identifying where a "the" in a sentence is used for a general idea or a specific reference. For example, in the sentence "the price of gas is soaring", I heard that "the" in the sentence is an example of the generic use of the. Although I can easily understand the generic use of "the" in the lion example, but I do not understand how there is an general idea about gas price. Soaring gas price is something real,and gas prices in different regions( in a hypothetical situation) can be different. So, if I say "the price of gas is soaring", do I mean the price of gas that is determined by the world's oil system or can I say "the gas price" even when I am indicating the state of gas price in "a particular region"?    I know it is even difficult to understand my question, but I hope someone could find what I am confused about and give an answer. How to securely delete files stored on a SSD? Create 128 Barcodes within Excel Is there a way to create Barcodes (128 standard) on a Mac, preferably via an add-in?  I need it to create barcodes in Excel sheets (or moreso a friend of mine needs it).   I have tried all VBA macros and fonts I found on Google, but none give me a scannable result (usually there are weird characters like ó's mixed in). Does anybody have a working solution? Is there a way to show statistic info? Book series about time travel from future to distant past, psychic powers? This is a reformulation of a deleted question:  If  $a_1 &gt; 0$ and $a_2 &gt; 0$ and $2a_{n+2} \le a_{n+1}+a_n$,  show that  $\lim \sup a_n \le \frac23 a_2 + \frac13 a_1$.  My proof involves showing that $a_{n+2} \le u_{n} a_{n+1} + (1-u_n)a_n $ where $u_n \to \frac23$, and I wondered if there is a simpler proof.  I will post my proof in a couple of days if no one does. Can Jupiter be ignited? Our solar system itself contains two candidate "Earths"  One is Jupiter's moon Europa and another is Saturn's moon Titan. Both of them have the problem of having at low temperature as Sun's heat cannot reach them.    Jupiter is made up mostly of Hydrogen so is our Sun. Can we ignite Jupiter so that it will produce enough heat to warm these two earth like planets/satellites? What can be consequences of any of such attempt? Can you find all classes in a package using reflection? Is it possible to find all classes or interfaces in a given package? (Quickly looking at e.g. , it would seem like no.) Uncaught rerender threw an error in 'markup://aura:expression' [info.$component$.$isValid$ is not a function] i'm trying to set a list of string to an aura:attribute and i get this error:     Uncaught rerender threw an error in 'markup://aura:expression'   [info.$component$.$isValid$ is not a function]   that's the attribute:  &lt;aura:attribute name="parents" type="String[]"/&gt;   i call this function in js:  test: function(component){     var action = component.get("c.test");         //Set up the callback         var self = this;         action.setCallback(this, function(actionResult) {                   debugger;             component.set("v.parents", actionResult.getReturnValue());         });                 $A.enqueueAction(action);    }   and thats the function:  @AuraEnabled public static List&lt;String&gt; test(){     String[] a = new String[]{};     a.add('1');     a.add('2');     return a; }   please help Thanks Asking distant cousins for DNA? In my family we have a DNA contradiction – two cousins (at about the 4th cousin level) took a Y-DNA test, but did not match and had two completely different haplogroups.   Since then, I have traced living cousins with the same surname – the only ones left living that I am aware of – and I would love to pay to have them tested to see if we can figure out where the non-paternity event (NPE) or other event happened (i.e. this new cousin could help us determine which line the NPE occurred in depending on which cousin he matches).   Does anyone have a sample letter, or know the best way to go about asking a distant cousin for DNA?   I have their address and am planning to write a letter, but I can't imagine receiving such a letter, so I am not quite sure how to ask without scaring them off. In the Final Battle, when you remove doom tokens for rolling successes against an Ancient One do you stop counting successes for that roll? In Arkham Horror you have to roll a cumulative number of successes equal to the number of players to knock off a doom token from the Elder God's health. If you reach the number of players worth of successes do you then stop counting for the player and move on or do you count the extra successes against the next doom token?  We played it so that you kept on adding them but it meant that we turned Nyalothotep into mince meat quite quickly (One Character was blessed had a fight of 6 a shotgun and Fight +1 skill card though) How to deal with factors with rare levels in cross-validation? Suppose in a regression analysis in R, I have a factor type independent variable with 3 levels in my train dataset. But in the test data set that same factor variable has 5 levels. Therefore I can not predict the response values for test dataset. What should be done in this case? How to add a progress bar to a shell script? When scripting in bash or any other shell in *NIX, while running a command that will take more than a few seconds, a progress bar is needed.  For example, copying a big file, opening a big tar file.  What ways do you recommend to add progress bars to shell scripts? What software do you use to keep up to date on literature, and if Google Scholar, how do you avoid information overload?