How to Add function in Dynamically Created Row?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajsarode2003
    New Member
    • Feb 2008
    • 4

    How to Add function in Dynamically Created Row?

    Hello guys,

    I am facing problem related to Adding the function to a dynamically crated row!!

    I have added row succesfully but when i am trying to set attribute for Function it is not working.

    I have tried something like this -

    insertedRow.set Attribute('onCl ick',someFuncti on('test'));

    I am using MSIE 6.0,

    Please, help me it's urgent

    Thanks in Advance!!!
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    setAttribute will not work with IE for handlers use the following instead:

    [CODE=javascript]insertedRow.onc lick = function() { someFunction('t est') };[/CODE]
    kind regards

    Comment

    • rajsarode2003
      New Member
      • Feb 2008
      • 4

      #3
      thanks gits. i got the answer.

      Comment

      Working...