hi,
i've a problem using the change-handler in a simple html-formular. the change-handler fires twice when the input-field already defines an onChange-Event.
Example:
in head of html:
<script src="jquery-1.4.2.js" language="javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#abc").change(function(event){
event.srcElement.style.borderColor='red';
});
});
function test()
{
alert('test');
}
</script>
in body of html:
<FORM enctype="multipart/form-data" CLASS=vrForm NAME="iForm" id="iForm" METHOD="POST" ACTION="../sdfsf.jsp?..." TARGET="body">
<table>
<tr>
<td>
testeingabe
</td>
<td>
<input class="SUMMARY" TYPE="text" NAME="LetzteMeldung" ID="LetzteMeldung" onchange="test(this);" VALUE="super" ROWS="1" SIZE="14" />
</td>
</tr>
the alert pop up twice before the input-field becomes red. In Firefox, Safari and Chrome the code runs well.
Does anyone knows the problem?
thanks for help.