Execute a PHP code inside jQuery

后端 未结 1 673
北荒
北荒 2021-01-26 13:42

That\'s what I have:

#nav-link\">LinkName

Here

相关标签:
1条回答
  • 2021-01-26 14:09

    Try something to the tune of this:

    <script>
      var data = <?php echo $arItem["LINK"]; ?>
    
      var yourLink = "blabla.com/"+data;
    
      //more of your code etc....
    
      $('#yourDiv_where_you_want_the_link').html(yourLink);
    
     </script>
    
    0 讨论(0)
提交回复
热议问题