• Resolved Phil

    (@owendevelopment)


    Hi, I’m using the currency switcher and when I check validation, I see that the element for the current item (in the select menu), has:

    <option value="US" selected='selected' selected='selected'>United&nbsp;States&nbsp;dollar&nbsp;($)</option>

    You see how selected=’selected’ is appearing twice. The PHP only has a single line to generate each select item:

    <?php foreach ($options as $key => $value) : ?>
        <option value="<?php echo $key?>" <?php echo selected($key, $selected_country ); ?>><?php echo $value; ?></option>
    <?php endforeach; ?>

    So it must be injecting it in twice elsewhere in the plugin.

    Funcitonality is fine, but it’s the only error in my validation check so my OCD is going nuts. ??

Viewing 1 replies (of 1 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi Phil,
    Currency Switcher Widget is a pro feature.
    Please open a ticket on commercial plugin site.

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • The topic ‘HTML Validation fail – ‘Selected’ injected twice’ is closed to new replies.