How can I get the id in the modal window? [closed]

1

How can I get the id in the modal window?

var items = [
  <?php while($reg=  mysql_fetch_array($order)){ ?>
      {
          id: <?php echo $reg["id"]; ?>,
          title: '<?php echo $reg["titulo"]; ?>',
       }, 
  <?php } ?> 

onItemClick: function(item) {
  console.log("Clicked: " + item);
  $('#orden').modal('show');
},
    
asked by jonny 19.12.2016 в 22:12
source

0 answers