Results 1 to 2 of 2
  1. #1
    ferrariboy21 is offline Member
    Join Date
    Sep 2008
    Rep Power

    Default document.getElementById - Help needed

    Picture : h tt p://

    if ( document.getElementById ( "input_field_1" ).value != "" )
    color = document.getElementById ( "input_field_1" ).value;
    color = "#AFD8F8";

    Currently, using the code above. If I click on the first color button, the whole graph changes to the color chosen.

    How do I make it that if I want different colors on different bars assuming the others are using "input_field_#". So if I want "Q2" to be green, "Q3" to be purple and so on, how do i do that?

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Sorry man,i think you misunderstood something,It is not a Javascript forum,it is Java Forum.

Similar Threads

  1. Building a document from a DOM
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-03-2008, 09:22 AM
  2. Need help with Document interface
    By cbalu in forum AWT / Swing
    Replies: 1
    Last Post: 11-30-2007, 11:03 PM
  3. Personal Document Manager 0.6
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 08-11-2007, 10:43 PM
  4. Parsed Document
    By nick211001 in forum New To Java
    Replies: 1
    Last Post: 07-29-2007, 01:53 AM
  5. add a xml document
    By Jack in forum XML
    Replies: 2
    Last Post: 07-04-2007, 09:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts