Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/03/2017, 11:47
jeremiselxi
(Desactivado)
 
Fecha de Ingreso: septiembre-2008
Mensajes: 269
Antigüedad: 15 años, 8 meses
Puntos: 22
Respuesta: Pasar parámetros a una función

Buenas tardes.

A mi me funcionó de esta manera.

Código HTML:
Ver original
  1. <a id="target_anchor1" class="anchor" href="#" title="XXXXXXXXXX" >test 1</a>
  2. <a id="target_anchor2" class="anchor" href="#" title="YYYYYYYYYY" >test 2</a>
  3. <a id="target_anchor3" class="anchor" href="#" title="ZZZZZZZZZZ" >test 3</a>

Código Javascript:
Ver original
  1. <script type="text/javascript">
  2. $(function() {
  3. $( ".anchor" ).click(function() {
  4.     $(this).flyout({
  5.         title: '',
  6.         content: $(this).attr("title"),
  7.         html: true,
  8.         dismissible: true
  9.     });  
  10.  
  11. });
  12. });
  13. </script>