Advanced Search

Results 1 to 2 of 2

Thread: making a field read only after running process

  1. #1
    Join Date
    Jan 2012
    Posts
    52
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Question making a field read only after running process

    i want to make a field read only after running a process.

    ex- when i want to see the 101 numbers record then after running that process when it shows the records then another user can't change that number like 102.
    i.e that field will be automatically read only after running that process.

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    This is a little confusing, but I get what you're trying to do is call a function and then make the text readonly. Here is an example of what I think you're trying to do:
    Code:
    for(i=1;i<2;i++;){
    document.getElementById("text").value = i;
    }
    document.getElementById("text").disabled = true ;
    Anyway you get the idea.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. The Following User Says Thank You to bernie1227 For This Useful Post:

    megha_3000 (07-31-2012)

Bookmarks

Posting Permissions

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