I am trying to attach events in a select trought a function in a polymer element.
Till now, what I can do is something like that
html
<select on-change="changeData">
<option>a</option>
..............
js
changeData(dataset){
console.log(dataset.target.value);
}
and it's ok
however, when I want to call a function with inputs parameters I can't
html
<select on-change="changeData(event.target.value)">
<option>a</option>
..............
js
changeData(dataset){
console.log(dataset);
}
It doesn't work. Is anyone able to correct me or at least guide me on what I am doing wrong?
Thanks