jquery - Link from one overlay to another -


i use jquery tools overlay feature.

my issue here is, want have link in 1 overlay open overlay while closing existing overlay.

how can make work?

<a href="#" class="takeatour" rel="#sitetour1">site tour</a>  <div class="overlay" id="sitetour1"> step 1 <a href="#" rel="#sitetour2">click here learn more</a> </div> <div class="overlay" id="sitetour2"> step 2 </div>           $("a[rel]").each(function(i) {              $(this).overlay({                   // common configuration each overlay                  oneinstance: false,                   closeonclick: true,                      expose: '#3fb8af',             });                      });  

add this:

$('a[rel=#sitetour2]').click(function(e) {     $('a[rel=#sitetour1]').overlay().close(); }); 


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -