Jump to content

onchange event


ballouta

Recommended Posts

Hello

I am doing a homework for my college,

i am asked to attach an existing event handler names fastSpeedChange to the onchange event of the <select> node.

 

the <select> node is referenced in this statement: this.fastSpeedNode = $ (params.fastSpeedId);

the event handler is:

this.fastSpeedChange = function () {

alert ("working");

}

 

 

if I write this:

this.fastSpeedNode.onchange = fastSpeedChange;

 

i get this error: fastSpeedChange is not defined

 

plz help

thank you

Link to comment
https://forums.phpfreaks.com/topic/230686-onchange-event/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.