Jump to content

javascript, more than one element.


tomdelonge

Recommended Posts

first off, i need to have a slider that changes the font size (as you drag it). for example, here:

http://demos.mootools.net/Slider

 

i don't have to use that one (it's not very pretty) but it's the only one i've found so far. problem is, i need more than one in my webpage. and i don't know how many. it could be one, or two, or ten. each one needs to be connected a specific <span> element. i have no idea how to do this.

 

i also need the number that it's slid at to be sent in with a form. (someone said to have an onchange event that changes a hidden input's value in the form.) that should work just fine.

 

so, firstly, i need to be able to have more than one: this could be done in php, but i don't understand javascript, so i wouldn't know where to start with that.

 

then i need to connect it to some hidden form fields.

 

any help is appreciated. and remember, i don't care which particular slider i use (though i prefer a smooth one)

Link to comment
https://forums.phpfreaks.com/topic/122964-javascript-more-than-one-element/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.