| jquery Programming Glossary: document.queryselectorallTake href of an anchor in a div and apply it to an image? http://stackoverflow.com/questions/10215345/take-href-of-an-anchor-in-a-div-and-apply-it-to-an-image  JS without needing to include jQuery. Live Demo var link document.querySelectorAll '.card prod a' link 0 .href link 1 .href   share improve this.. 
 jQuery - Raphael - SVG - selector based on custom data http://stackoverflow.com/questions/11187856/jquery-raphael-svg-selector-based-on-custom-data  transaction data value Currently I have the code var found document.querySelectorAll transaction ' current_transaction ' Which should return a NodeList.. follows but I cannot work out the correct syntax var found document.querySelectorAll data 'transaction' 1 Any help would be much appreciated  javascript.. 
 jQuery vs document.querySelectorAll http://stackoverflow.com/questions/11503534/jquery-vs-document-queryselectorall  vs document.querySelectorAll  I heard several times that jQuery's strongest asset is the.. can achieve the same result with document.querySelector or document.querySelectorAll which are supported in ie8 and above . So the question is why.. 
 What CSS3 selectors does jQuery really support, e.g. :nth-last-child()? http://stackoverflow.com/questions/11745274/what-css3-selectors-does-jquery-really-support-e-g-nth-last-child  jQuery first passes the selector string to the native document.querySelectorAll implementation before falling back to Sizzle. Since it is a.. falling back to Sizzle. Since it is a valid CSS selector document.querySelectorAll will successfully return a node list for jQuery to use thereby.. use thereby obviating the use of Sizzle. In the event that document.querySelectorAll fails jQuery automatically falls back to Sizzle. There are a.. 
 jQuery support “:invalid” selector http://stackoverflow.com/questions/15820780/jquery-support-invalid-selector  ' ' invalid function elem index match var invalids document.querySelectorAll ' invalid' result false len invalids.length if len  for var.. 
 CasperJs and Jquery with chained Selects http://stackoverflow.com/questions/16283908/casperjs-and-jquery-with-chained-selects  function check return this.evaluate function  return document.querySelectorAll 'select#s2 option' .length 1  function then  select option on.. function check  return this.evaluate function  return document.querySelectorAll 'select#s3 option' .length 1   function then  select option.. function check   return this.evaluate function   return document.querySelectorAll 'table#info tbody tr' .length 1     function then   Do verifications.. 
 Use javascript to count immediate child elements of an element http://stackoverflow.com/questions/5685184/use-javascript-to-count-immediate-child-elements-of-an-element  selector interface querySelectorAll . var selectionCount document.querySelectorAll #window section .length If you want a backwards compatible solution.. 
 jQuery selector optimization http://stackoverflow.com/questions/6028555/jquery-selector-optimization  selector Is this a Sizzle thing or does the same apply for document.querySelectorAll Are there any speed gains using similarly optimised CSS selectors.. 
 How to bind to the submit event when HTML5 validation is used? http://stackoverflow.com/questions/7587511/how-to-bind-to-the-submit-event-when-html5-validation-is-used  to fire invalid event if the input data is invalid document.querySelectorAll 'input' 0 .addEventListener 'blur' function this.checkValidity.. .addEventListener 'blur' function this.checkValidity false document.querySelectorAll 'input' 0 .addEventListener 'invalid' function console.log 'invalid.. 
 Take href of an anchor in a div and apply it to an image? http://stackoverflow.com/questions/10215345/take-href-of-an-anchor-in-a-div-and-apply-it-to-an-image 
 jQuery - Raphael - SVG - selector based on custom data http://stackoverflow.com/questions/11187856/jquery-raphael-svg-selector-based-on-custom-data  How do I find elements on the canvas that have the same transaction data value Currently I have the code var found document.querySelectorAll transaction ' current_transaction ' Which should return a NodeList with the elements but it doesn't work. To retrieve the.. of the elements. Therefore I want my selector to be look as follows but I cannot work out the correct syntax var found document.querySelectorAll data 'transaction' 1 Any help would be much appreciated  javascript jquery html data raphael   share improve this question.. 
 jQuery vs document.querySelectorAll http://stackoverflow.com/questions/11503534/jquery-vs-document-queryselectorall  vs document.querySelectorAll  I heard several times that jQuery's strongest asset is the way it queries and manipulates elements in the DOM you can use.. to do in regular javascript . However as far as I know you can achieve the same result with document.querySelector or document.querySelectorAll which are supported in ie8 and above . So the question is why 'risk' jQuery's overhead if it's strongest asset can be achieved.. 
 What CSS3 selectors does jQuery really support, e.g. :nth-last-child()? http://stackoverflow.com/questions/11745274/what-css3-selectors-does-jquery-really-support-e-g-nth-last-child  selector appears to work in Firefox Chrome and IE9 is because jQuery first passes the selector string to the native document.querySelectorAll implementation before falling back to Sizzle. Since it is a valid CSS selector document.querySelectorAll will successfully.. to the native document.querySelectorAll implementation before falling back to Sizzle. Since it is a valid CSS selector document.querySelectorAll will successfully return a node list for jQuery to use thereby obviating the use of Sizzle. In the event that document.querySelectorAll.. will successfully return a node list for jQuery to use thereby obviating the use of Sizzle. In the event that document.querySelectorAll fails jQuery automatically falls back to Sizzle. There are a number of scenarios that can cause it to fail The selector.. 
 jQuery support “:invalid” selector http://stackoverflow.com/questions/15820780/jquery-support-invalid-selector  expression making .is ' invalid' valid jQuery.extend jQuery.expr ' ' invalid function elem index match var invalids document.querySelectorAll ' invalid' result false len invalids.length if len  for var i 0 i len i  if elem invalids i  result true  break    return.. 
 CasperJs and Jquery with chained Selects http://stackoverflow.com/questions/16283908/casperjs-and-jquery-with-chained-selects  wait until the second select is populated this.waitFor function check return this.evaluate function  return document.querySelectorAll 'select#s2 option' .length 1  function then  select option on second select this.evaluate function valueOptionSelect  'select#s2'..  wait until the third select is populated  this.waitFor function check  return this.evaluate function  return document.querySelectorAll 'select#s3 option' .length 1   function then  select option on third select  this.evaluate function valueOptionSelect  'select#s3'.. after an option is seleted on third select.  this.waitFor function check   return this.evaluate function   return document.querySelectorAll 'table#info tbody tr' .length 1     function then   Do verifications here ...      casper.run function finish execution.. 
 Use javascript to count immediate child elements of an element http://stackoverflow.com/questions/5685184/use-javascript-to-count-immediate-child-elements-of-an-element  child immediate   share improve this question   Use the DOM selector interface querySelectorAll . var selectionCount document.querySelectorAll #window section .length If you want a backwards compatible solution loop through childNodes and count element nodes. var.. 
 jQuery selector optimization http://stackoverflow.com/questions/6028555/jquery-selector-optimization  explain why the less specific left is faster as a CSS selector Is this a Sizzle thing or does the same apply for document.querySelectorAll Are there any speed gains using similarly optimised CSS selectors in CSS files  javascript jquery css optimization jquery.. 
 How to bind to the submit event when HTML5 validation is used? http://stackoverflow.com/questions/7587511/how-to-bind-to-the-submit-event-when-html5-validation-is-used  field  input type submit form Then you need to call checkValidity to fire invalid event if the input data is invalid document.querySelectorAll 'input' 0 .addEventListener 'blur' function this.checkValidity false document.querySelectorAll 'input' 0 .addEventListener.. input data is invalid document.querySelectorAll 'input' 0 .addEventListener 'blur' function this.checkValidity false document.querySelectorAll 'input' 0 .addEventListener 'invalid' function console.log 'invalid fired' false Look at my example here http jsbin.com.. 
 |