Guest User

Untitled

a guest
Apr 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. var name = $('#name').val();
  2.  
  3. <div class="tab-pane fade show active clearfix" id="step1" role="tabpanel" aria-labelledby="home-tab">
  4. <h6>User Info</h6>
  5. <form method="post" action="">
  6. {{csrf_field()}}
  7. <div class="form-group font-size-sm">
  8. <label for="name" class="text-gray">Name</label>
  9. <input type="text" required class="form-control" value="{{ (Auth::check()) ? Auth::user()->name : old('name')}}">
  10. </div>
  11. <!-- other form fields -->
  12. <input type="submit" id="goToStep2" href="#step2"
  13. class="btn btn-primary btn float-right next-step" value="Go to step 2"/>
  14. </form>
  15. </div>
  16.  
  17. $("a[id='goToStep2']").on('click', function(){
  18. $.ajax({
  19. url: '{{ route('products.storeUerInfo',null) }}/' + category_id,
  20. type: 'POST',
  21. success:function(result){
  22. ),
  23. error: function(error) {
  24. console.log(error.status)
  25. }
  26. });
  27. });
Add Comment
Please, Sign In to add comment