Posts tagged "jQuery"
Simulating HTML5's placeholder attribute with jQuery
I recently discussed the placeholder attribute in HTML5. Today, I needed exactly such a behavior for a site I'm working on, so I knocked together a reusable, unobtrusive solution with jQuery.
target="_blank" for XHTML Strict
For better or for worse, it's a widespread convention for offsite links to open in a new window. This is usually achieved by setting the attribute target="_blank" on the link in question.
Of course, the target attribute is illegal in XHTML Strict—so this bit of functionality of will invalidate your pages.
I whipped up a simple fix to this problem. Here's the demo and download page.