Miko Posted December 1, 2009 Share Posted December 1, 2009 Hi there! I'm trying to combine some PHP code in my jQuery: I have this code here: $('#selectDepot').append("<?php echo "<ul>"; foreach($fetchdepot as $depot){$depotNr = $depot['depots']; echo "<li><a href='\"#\"'>".$depotNr."</a></li>";} echo "</ul>"; ?>"); As you can see my php code will get some info and echo it out as a hyperlink. The strange thing is that when I remove the hyperlink the data is printed out correctly, but when I add the hyperlink (a href="") well, it just disappears. Anyone can help me out here? Thanks! Link to comment https://forums.phpfreaks.com/topic/183548-combining-jquery-with-php/ Share on other sites More sharing options...
Miko Posted December 1, 2009 Author Share Posted December 1, 2009 find it: <a href='#'> Link to comment https://forums.phpfreaks.com/topic/183548-combining-jquery-with-php/#findComment-968791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.