.load() doesn't work in Chrome and Firefox
Hi friends,
my code is as follows:
<td><a href="#" id ="putsomeDynamicvalue">ingresar</a></td>
<script type ="text/javascript">
$(document).ready(function(){
$("#
putsomeDynamicvalue
").click(function(){
var code =$(this).val();
$("#lista").load("http://localhost:8081/Servlet/ingresarOpcion", {codigo:code})
})
})
</script>
This works fine in Explorer 8 (I returned the result of the servlet), but in Chrome and Firefox does not return anything.
Anyone have any idea about this topic?
Greetings,
Hector