Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Findind value of a textbox inside a datagrid in JavaScript

Findind value of a textbox inside a datagrid in JavaScript

Scheduled Pinned Locked Moved ASP.NET
javascripttutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jaishankar2704
    wrote on last edited by
    #1

    Hi. I am using VS2003. I hava a DataGrid and inside one Templete Column, I have a TextBox. How to get the value of that textbox(which is inside the DataGrid) in Javascript. Regards,

    S J 2 Replies Last reply
    0
    • J jaishankar2704

      Hi. I am using VS2003. I hava a DataGrid and inside one Templete Column, I have a TextBox. How to get the value of that textbox(which is inside the DataGrid) in Javascript. Regards,

      S Offline
      S Offline
      squattyarun
      wrote on last edited by
      #2

      function getTextValue(control) { for (i = 0 ; i-1) { //get the value of textbox document.frmName.elements[i].text; } } } I hope this will help u out .......

      1 Reply Last reply
      0
      • J jaishankar2704

        Hi. I am using VS2003. I hava a DataGrid and inside one Templete Column, I have a TextBox. How to get the value of that textbox(which is inside the DataGrid) in Javascript. Regards,

        J Offline
        J Offline
        jaysaran
        wrote on last edited by
        #3

        Grid is treated like a table Example: function fngetvalue() { varTbody=document.getElementById('GRID_ID').childNodes[0] td=varTbody.getElementsByTagName("TD") tgname=varTbody.getElementsByTagName("INPUT") for(i=0;iBest Regards

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups