Hi all.
I have a response from Ajax call and I'll want to display that in 2
divs(header and footer in my form). Now I'm using this terrible script:
<script>
function hideResponse()
{
$('#divResposta').hide();
$('#divResposta2').hide();
}
$(document).ready(function() {
hideResponse();
......
if(ajaxResponse == 3) success();
$('#divResposta').html(data.saida).show();
$('#divResposta2').html(data.saida).show();
Do you know how to change this code to looks more to jQuery(The write less,
do more)? ;-)
Cheers