On Fri, 20 Mar 2009 09:18:25 -0400
Rafael George <[email protected]> wrote:

> 
> I see, but if you notice where the number for rating resides is inside
> an external div, the final html goes like this
> 
> <div id="interested_users">
>   <div id="interested_block" class="mark_1">
>      1
>   </div>
>      <a href="/users/interested/1" class="remote" />
> </div>
> 
> I want to update the interested_block only.
> 

Well, you can extract the question.id from the link.

But also, if the use of an id is appropriate (as in, it's unique to the page), 
then you should just be able to replace the contents of the div directly, as 
you can select for it uniquely.

If it isn't, then $(this).parent().find("#interested_block") would also be the 
correct interested block, if $(this) is the link.

There are a few ways to do it.

Regards
Jon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to