onchange html event redirect to change()
I'm dynamicaly create a object for my webpage
it's base on <select> tag
in my code, I need to redirect onchange script to the change() of my new object
my tag is writen like this :
- <select id="mytemplate" onchange="$("#other").val($(this).val())" > ....
I create my new object "newone" and I want to do that :
- $("#newone").change(<the event of my select>);
but I don't understand how to set the change trigger with the script of my select onchange.
I know how to set event with specific code when creating object, but I don't know how to redirect to an existing script given on Onchange event.
for information, when my object is fully created, I delete the <select> tag from DOM
is someone have an idea ?