Bonjour,

je suis débutant en Jquery.

J'ai un script qui ouvre une fenêtre modale quand je clique sur un lien <a href="#" id="show" class="button left">Show it</a>, cela fonctionne sans souci

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$(function() {
		$('#show').avgrund({
			height: 200,
			holderClass: 'custom',
			showClose: true,
			showCloseText: 'Close',
			enableStackAnimation: true,
			onBlurContainer: '.container',
			template: '<p>So implement your design and place content here! If you want to close modal, please hit "Esc", click somewhere on the screen or use special button.</p>' +
			'<div>' +
			'<a href="http://github.com/voronianski/jquery.avgrund.js" target="_blank" class="github">Avgrund on Github</a>' +
			'<a href="http://twitter.com/voronianski" target="_blank" class="twitter">Twitter</a>' +
			'<a href="http://dribbble.com/voronianski" target="_blank" class="dribble">Dribbble</a>' +
			'</div>'
		});
	});
Mon souci est que je voudrai appeler la même fonction mais depuis un script javascript, sans devoir cliquer sur un élément.

De quelle façon appeler cette fonctioN ?

Merci de votre aide