Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Addevent is not working in v8

Hi,

I am using addevent to check if user have filled any value to open end box. I am using same script which is working on v7 but saying error on v8. "SCRIPT438: Object doesn't support property or method 'addEvent' "

My code started with below simple lines.

var obj1 = document.mainform.Q111_r1_c1.value;
obj1.addEvent('keyup', hello);

Can you look into this?
asked Aug 21, 2013 by Rajesh Rana Gold (23,660 points)

1 Answer

+1 vote
 
Best answer
Hi You can use jquery if this is not working as the below code will surely work

$("#Q1_r1_c1").keydown(function(){
    hello();
  });
  $("#Q1_r1_c1").keyup(function(){
    hello();
  });
answered Nov 6, 2013 by rgupta Bronze (1,635 points)
selected Nov 6, 2013 by Rajesh Rana
...