Guest User

Untitled

a guest
Oct 17th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. $(function(){
  2. $('#boutonCreerPlat').on('click', function(){
  3. $.ajax({
  4. type: "POST",
  5. url: '',
  6. data: 'string',
  7. success: $.post( "plat.php", function( data ) {
  8. $( "#plat" ).append( data );
  9. }),
  10. dataType: 'string'
  11. });
  12. });
  13.  
  14.  
  15. <?php
  16. echo '<div class="form-group">
  17. <label for="exampleInputFile">Créer un plat</label>
  18. <input name="nomPlat" type="text" class="form-control">
  19. <select name="prodSelect"></select>
  20. <button class="btn btn-secondary">Ajouter un produit +</button>
  21. </div>';
Add Comment
Please, Sign In to add comment