1 Reply Latest reply on Apr 19, 2010 5:41 AM by Simon.Dau

    Attach event to element (javascript)

    Simon.Dau Level 1

      Hi there,


      suddenly ran into following trouble:


      var cell3 = row.insertCell(2);
         cell3.style.verticalAlign = "top";
         var element2 = document.createElement("input");
         element2.type = "text";

         element2.id = "campus_" + (rowCount++);
         element2.onBlur = "checkStatus(3)";


      it does not attached onBlur event. Tried couple of different ways from hours of search online but nothing seems to work. Just get an error saying that object required or no errors at all, but it does not call checkStatus function.


      any help would be highly appreciated.