I need to declare a function 2 times with a different treatements let me explain more the overwritting :
function test(var){
//treatments
}
function test(var){
alert("something" +var);
}
and here is the HTML code :
<select name="choices" onchange="test(this)">
<option value="1">test1</option>
<option value="2">test2</option>
</select>
how can I make them working both without making everything in one function ?