Event listener does not listen after having used $.post
Hi,
I've got an Event Listener
$(".SFV").click(function(event) ...
And I've got an submit button
< ... type="submit" class="SFV">
When this button is displayed in a normal html-script, the event listener works. When I insert this button into the same script with the help of
- $.post("do/setFieldVal_Input.php", {table:table, whereFieldName:whereFieldName, whereVal:whereVal, setFieldName:setFieldName, idHtml:idHtml}, function(data)
- {
- //document.getElementById('test').innerHTML=data;
- document.getElementById(idHtml).innerHTML=data;
- });
then the listener does not work anymore.
Why is that?
Thx