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! Quote 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='#'> Quote Link to comment https://forums.phpfreaks.com/topic/183548-combining-jquery-with-php/#findComment-968791 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.