Przekazanie zmiennej z PHP do JQERY

  1. echo '<img id="lol" src="'.$config.'" />';
  1. <img id="lol" src="http://cos.pl" />
i potem w jQuery go pobrać
  1. var cos = $('#lol').attr('src');

Brak komentarzy:

Prześlij komentarz

LinkWithin-4

Related Posts Plugin for WordPress, Blogger...