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

    Default document.getElementById - Help needed

    Picture : h tt p://img221.imageshack.us/img221/6710/a1to2.jpg


    if ( document.getElementById ( "input_field_1" ).value != "" )
    color = document.getElementById ( "input_field_1" ).value;
    else
    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
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    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
  •