The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. enfant2soliel
    Posted 11 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 />

    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
    Posted 11 years ago #

    Try to change it to id.

  3. enfant2soliel
    Posted 11 years ago #

    sure, thanks!!! :)

Topic Closed

This topic has been closed to new replies.

About this Topic