You may try using jquery delegate or bind to send an ajax request to
update the contents when clicking. Something like;

$(document),delegate("#tab1", "click", function(){
  $.ajax({ your ajax call here });
});

On 29 oct, 01:50, Pravin Mishra <[email protected]>
wrote:
> HI Guy's
>
> TAB1 and TAB2  have some radio button, checkbox  and dropdown menu.  When
> TAB1 is selected, I have to switch to TAB2 and then back to TAB1 to refresh
> the loaded content.
>
> How to make TAB1 refresh loaded content when click on its tab?
>
> *code is something like that*
>
> <ul class="tabs">
>     <li><a *href="#tab1"*>Gallery</a></li>
>     <li><a *href="#tab2"*>Submit</a></li>
> </ul>
>
> <div class="tab_container">
>     <div *id="tab1"* class="tab_content">
>         <!--Content-->
>     </div>
>     <div *id="tab2"* class="tab_content">
>        <!--Content-->
>     </div>
> </div>
>
> +++++++++++++
> Pravin Mishra

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to