www.webdeveloper.com
Results 1 to 3 of 3

Thread: Using content of a variable as an ElementID

  1. #1
    Join Date
    Dec 2010
    Location
    Fremont, CA, USA
    Posts
    8

    Using content of a variable as an ElementID

    Hello all,

    I have a table in which there are some 18 columns. Each of those columns have text fields. Ordinarily those fields are disabled. However if a "modify" button is clicked in a row, then the cells in each of those 18 columns in that very same row, become enabled i.e. modifiable.

    The fields are named as r0f1, r0f2, r0f3 and so on until r0f18 in Row 0. In row 1, the fields are named as r1f1, r1f2, r1f3 etc.

    When the modify button in row 0 is clicked, a javascript function is called say "modify_clicked(rownum)" with rownum having a value of 0. If modify button of row 1 is clicked then rownum has a value of 1.. and so on.

    So, if I click modify button of row 0, I would like the disabled attribute of all fields having names r0fx to be changed to false.

    Any suggestions how this can be done?

    Thank you in advance.

    Uttam

  2. #2
    Join Date
    Dec 2010
    Location
    Fremont, CA, USA
    Posts
    8
    Sorry - this post took too long to get posted in the forum. Meanwhile I rushed and posted another question to which I got an answer already.

    Moderators: Could you please delete or disable this post?

    Thank you

    Uttam

  3. #3
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,126
    Why delete the post? Simply mark it as resolved and post the solutions for others
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

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