Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
Changing <div> width's using value inside div
Old 02-10-2010, 05:31 AM Changing <div> width's using value inside div
Junior Talker

Posts: 1
Name: Ed
Trades: 0
Hi,

<-- IGNORE PROBLEM SOLVED -->

I'm new to the forum AND javascript so please try and excuse any mishaps in the below post

I currently have a voting system whereby users vote on an item giving it points. Inside a div the number of points will be printed. I need to control another (or the same) div's width based on this number.

Like I said I'm new(ish) to javascript but I've got a good understanding of how the basics work but I'm really lost as to how to start this.

So at the minute I have a div like this

<div id="results">3 points</div>
<div id="progress" style="width:0%"></div>

I need to change the width of div id = progress depending on what's in div id=results.

Any help would be really appreciated!

Thanks

Ed

Last edited by ed_conolly; 02-10-2010 at 09:05 AM.. Reason: Problem Solved
ed_conolly is offline
View Public Profile
 
 
Register now for full access!
Closed Thread     « Reply to Changing <div> width's using value inside div
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19235 seconds with 12 queries