Twitter

Categories

JavaScript, jQuery

Click to ‘select all’ on the PRE element

When you want to display code, you’re probably working with pre elements. The fact that they can contain markup make them really effective for syntax highlighting. I’ve used Knockout en comment binding to generate code into a pre field and that’s really cool.

Chrome, JavaScript, jQuery

Using Chrome’s XPath with jQuery

While working with the Chrome Developer Tool I’ve discovered that you can retrieve the XPath of a selected node, But… it only works in Chrome. So what about other browsers? What about jQuery? What about querying documents that resulted from an AJAX request?

©2010-2019 by Kees C. Bakker, all code is licensed under MIT.
By using our website, you hereby consent to our Privacy Policy and agree to its Terms and Conditions.