how to validate the dynamic row fields

Discussion in 'PHP' started by vetrivel, Feb 8, 2010.

  1. #1
    Hi,
    I have generated the number of rows dynamically in a page.
    Now i would like to add validation to that fields .
    But when i do ,it didnt detect the field even by "id or name" .ie document.getElementId and also document .form.field name .both this are not returning no such field typo error.
    how to overcome this?
    Is it possible to validate this fields.
    guide me how to do this.

    Thanks
     
    vetrivel, Feb 8, 2010 IP
  2. onpublic89

    onpublic89 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    id="xxxx<?=$row;?>" onclick='getRow('<?=$row;?>')'

    javascript : getRow(param)

    objec = document.getElementById('xxxx'+param)...........

    ^^
     
    onpublic89, Feb 8, 2010 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    refer to javascript page
     
    bartolay13, Feb 8, 2010 IP