Forum Moderators: open

Message Too Old, No Replies

sorting DIV elements, by a few ways

need help sorting elements

         

flexidx

5:31 am on May 9, 2006 (gmt 0)



Hello,

I am displaying products, I want to be able to have the user sort the products with out reloading the page.

I want to be able to sort on Price, DateAvailable, ProductName.

Is this possible? Maybee

<div Price="19.95" Date="2006-06-01" Product="ABC">
discription and pictures and form elements here
</div>
<div Price="9.95" Date="2006-04-01" Product="DEF">
discription and pictures and form elements here
</div>

Also is it pssible to add tags to divs or an other elements? I mean normally it is <div class=dsfa id=21> so can I add/use custom ones like Product=abc?

Thanks
Noobie

siMKin

9:11 am on May 9, 2006 (gmt 0)

10+ Year Member



I would put it in the title-attribute ( title="abc"). That will work for sure and is less likely to give browser problems