WordPress.org

Ready to get started?Download WordPress

Forums

"<form name=" is invalid XTML markup (3 posts)

  1. enfant2soliel
    Member
    Posted 9 years ago #

    i used a dropdown javaScript for archive listing (from here http://codex.wordpress.org/Template_Tags/get_archives):

    <form name="archiveform" action=""><br />
    <select name="archive_chrono" onchange="window.location =<br />
    (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);"><br />
    <option value=''>Select Month</option><br />
    <?php get_archives('monthly','','option'); ?><br />
    </select><br />
    </form>

    and now validator tells me the site isn't valid xhtml:

    Error Line 109 column 11: there is no attribute "name".
    <form name="archiveform" action="">

    is there any way to make a drop down without submit button and without xhtml syntax errors?

    Thanks :)

  2. moshu
    Member
    Posted 9 years ago #

    Try to change it to id.

  3. enfant2soliel
    Member
    Posted 9 years ago #

    sure, thanks!!! :)

Topic Closed

This topic has been closed to new replies.

About this Topic