HTML Validating Error: The id value [ navMainSearch ] must be unique
What does this error means
The id value [ navMainSearch ] must be unique
It refers to this line
HTML Code:
<div id="navMainSearch" class="forward"><form name="quick_find_header" action="https://www.DomainName.com/index.php?main_page=search_result" method="get"><input type="hidden" name="main_page" value="search_result"><input type="hidden" name="search_in_description" value="1"><input type="text" name="keyword" size="6" maxlength="30" style="width: 100px" placeholder="Search" aria-label="Search" > <input class="cssButton submit_button button button_search" onmouseover="this.className='cssButtonHover button_search button_searchHover'" onmouseout="this.className='cssButton submit_button button button_search'" type="submit" value="Search"></form></div>
Any Ideas? Thanks.
Re: HTML Validating Error: The id value [ navMainSearch ] must be unique
it means that if you do a view source on your page, you'll see there are *two* (or more!) divs which have id="navMainSearch".
Re: HTML Validating Error: The id value [ navMainSearch ] must be unique
The real question would be why? But it is impossible to answer witout more information like file name, ZC version, is it in a plugin or ZC core...?
Re: HTML Validating Error: The id value [ navMainSearch ] must be unique
Quote:
Originally Posted by
swguy
it means that if you do a view source on your page, you'll see there are *two* (or more!) divs which have id="navMainSearch".
Thanks Scott. I found a few of them in the tpl_header.php, i commented out one of them since the other ones in an if statement and that cleared the error.
<!--<div id="navMainSearch" class="forward">
</div>-->
Thanks again.
Re: HTML Validating Error: The id value [ navMainSearch ] must be unique
Good job! Glad you were successful in clearing out this issue.