See below
Main Topics
Browse All TopicsI am trying to dynamically change the CSS element of id "first" according to what is inputed in the field "WIDTH", but I am not having any luck.
I also need it to change the value in a javascript as I have tried to do with "newWidth".
Please help, as I'm loosing my mind as a newbie :-\
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Just for future reference, to get feedback on your JavaScript, you can use JSLint, The JavaScript Verifier (http://www.jslint.com/).
Thanks everyone that was spot on. I've also got a carriage return question :-) http://www.experts-exchang
Business Accounts
Answer for Membership
by: pratap_rPosted on 2008-06-02 at 09:13:13ID: 21693276
few problems with your script
1. Line 6: you are declaring widthChange, but using widthCHANGE elsewhere in the function. javascript is case sensitive
2. Line 7: you have to use style.width instead of style.display to set the width.
3. Line 7: you are using the comparision operator ==, you should use =
4. Line 7: widthCHANGE is a HTML object, you need to use widthCHANGE.value to get the value in the text field
5. Comment out lines 18 & 19
try the code below.. I just performed some cleanup, nothing else is changed
Select allOpen in new window