Question

I am using prettyphoto jQuery lightbox plugin. i have following html line

<a href="images/img1.jpg" rel="prettyPhoto"><img src="images/img1.jpg" alt="heading" /></a>

and when I try validate the html code it gives me following error message

Bad value prettyPhoto for attribute rel on element a: The string prettyphoto is not a registered keyword or absolute URL.

What should I do to correct this. Since rel="prettyPhoto" is necessary for the plugin to work properly I don't understand how to solve this problem

Was it helpful?

Solution

You could add the rel attribute with jQuery

$('a').attr('rel', 'prettyPhoto');

But I dont know if validator checks the original HTML or also checks the final HTML.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top