Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML VALIDATION - id="tdb1" cure


Recommended Posts

I would like to validate as much code as possible.

 

I assume this is a common ask although i have found very little information online on how to sure it.

 

IN HTML VALIDATOR:

 

Line 433, Column 1110: ID "tdb1" already defined…product_info.php?products_id=234" id="tdb1" class="ui-button ui-widget ui-stat…

 

 

there are many instances ofID "tdb1" ,

 

is there are workaround or solution for this???

Link to comment
Share on other sites

id's can only be used once , and you have more than 1 element with id="tdb1".

 

This is generally replaced with a class ie. class="tbd1" - as a single class can be used multiple times without error.

 

This will only work of course if the said id="tbd1" isnt being referenced by something else - ie javascript- if it is you need to change its reference to work with the class.

 

This is however more of a html problem than an oscommerce one.

 

Jules

Link to comment
Share on other sites

I've seen this bug associated with the cache in osCommerce. Turn off your cache and see if the error is still there.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Not the cache bug then. Those IDs are usually automatically generated by jQuery. You may have one or more that is hardcoded and is therefore not being counted by the script, which then generates a duplicate. Try searching your code for tdb1.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...