Results 1 to 2 of 2

Thread: In input textfield how to capture value atrribute dynamically ?

  1. #1
    Join Date
    Jun 2009

    In input textfield how to capture value atrribute dynamically ?

    <input type="text" value="enter query" />
    this code will provide default text in the textfield as "enter query"

    If I want this value to be provided by java variable input_text, where input_text has value of "enter query"

    <input type="text" value="<%=input_text%>" />
    <input type="text" value=<%=input_text%> />
    In the first instance, default value for the input text field will become
    <%=input_text%> ,

    while in second instance value=enter query , will this be valid ?

    I tried it both ways and in the text field, I got "null".

    How to capture value dynamically ?


  2. #2
    Join Date
    May 2009
    Rochester, NY
    You might want to try posting this in a forum that discusses the language in question. You said Java. Try posting it there, as this the problem is not really with the HTML.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Recent Articles