form element accessible from javascript


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: form element accessible from javascript

  1. #1
    Dan Guest

    Re: form element accessible from javascript

    Ever tried setting the input's bgcolor to the same as the body's and no
    borders? try

    <INPUT style="border: 0;background-color: #ffffff" NAME="test" VALUE="toto">
    on a white background or #000000 on a black one.

    Dan
    "tyris" <kea@mailcity.com> wrote in message
    news:3c03621e$1@147.208.176.211...
    >
    > i need to have an element in my form where i can modify the value thanks

    to
    > javascript. The problem is that i'd like to use something else than an

    input,
    > i don't want to use a box, i'd like to have an element that apears like

    simple
    > text
    >
    > i mean to have something like :
    >
    > value : <some element value="toto">
    >
    > and not like
    >
    > value : <INPUT NAME="test" VALUE="toto">
    >
    > so that the display result would be exactly like what you se here :
    >
    > value : toto
    > (no box, no input)
    >
    > where the toto field is an element i can access with javascript. is there
    > a way to have this ? i don't want to use a hidden input, i need a way to
    > have a visible element, like a label, a simple label, but accessible from
    > javascript




  2. #2
    tyris Guest

    form element accessible from javascript


    i need to have an element in my form where i can modify the value thanks to
    javascript. The problem is that i'd like to use something else than an input,
    i don't want to use a box, i'd like to have an element that apears like simple
    text

    i mean to have something like :

    value : <some element value="toto">

    and not like

    value : <INPUT NAME="test" VALUE="toto">

    so that the display result would be exactly like what you se here :

    value : toto
    (no box, no input)

    where the toto field is an element i can access with javascript. is there
    a way to have this ? i don't want to use a hidden input, i need a way to
    have a visible element, like a label, a simple label, but accessible from
    javascript

  3. #3
    Bronwyn Streeter Guest

    Re: form element accessible from javascript

    This will only work for IE. It won't work in Netscape

    Dan <dann@hotpop.com> wrote in message news:3c037ff7@147.208.176.211...
    Ever tried setting the input's bgcolor to the same as the body's and no
    borders? try

    <INPUT style="border: 0;background-color: #ffffff" NAME="test" VALUE="toto">
    on a white background or #000000 on a black one.

    Dan
    "tyris" <kea@mailcity.com> wrote in message
    news:3c03621e$1@147.208.176.211...
    >
    > i need to have an element in my form where i can modify the value thanks

    to
    > javascript. The problem is that i'd like to use something else than an

    input,
    > i don't want to use a box, i'd like to have an element that apears like

    simple
    > text
    >
    > i mean to have something like :
    >
    > value : <some element value="toto">
    >
    > and not like
    >
    > value : <INPUT NAME="test" VALUE="toto">
    >
    > so that the display result would be exactly like what you se here :
    >
    > value : toto
    > (no box, no input)
    >
    > where the toto field is an element i can access with javascript. is there
    > a way to have this ? i don't want to use a hidden input, i need a way to
    > have a visible element, like a label, a simple label, but accessible from
    > javascript






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center