Skip to content

Author: admin@master

JavaScript regex get number after string

After coming to the shocking realization that regular expressions in JavaScript are somewhat different from the ones in PCE, I am stuck with the following. In php I extract a number after x: In JavaScript the same regex doesn’t work, due to invalid group resulting from the capturing parenthesis differen…

Selecting Multiple Elements height();

I am just wondering why this jQuery won’t work: So as you can see I am trying to get the height of multiple elements and store them all within my variable. I’d expect jQuery to add all of the elements heights together to create a final value however when I console.log the variable hdr I get the he…