but better to put them into on class

<div class='update_em'></div>
<div class='update_em'></div>

 $('.update_em').html(data.saida).show();

then you don't need container + you can put them into separate parts
on the page

On Apr 10, 3:16 pm, "Web Specialist" <[EMAIL PROTECTED]>
wrote:
> 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

Reply via email to