Thanks upandhigh! Works like a charm with a class.
Cheers
Marco Antonio
On Thu, Apr 10, 2008 at 9:48 AM, upandhigh <[EMAIL PROTECTED]> wrote:
>
> 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
>