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 <diatm.pravin.it.07...@gmail.com>
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment