Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes attribute in html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "attribute in html" Watch "attribute in html" New topic

attribute in html

chauhan prakash

Joined: Oct 08, 2006
Posts: 6
I am retrieving the particular record(read only mode) from the Database. Now i want to edit those particular record with the help of one edit button.

After pressing the "Edit" button all existing data should come in "editable" form.(read & write mode). So that anybody can see the existing data & modify as per their requirement.

So which attribute of html i have to use ?

can anybody help me out. Thanks in advance.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60822

You could show the data in text fields with readOnly set to true. When Edit is clicked, turn readOnly off so that the fields become editable.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: attribute in html
Similar Threads
getting previous value when using display:table
Parent-Child form interaction
add a row
Dynamic forms?
exract the values of a row which is dynamically generated