OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

my expect response is'nt working and i want to correct my code below the title

  • Thread starter Thread starter kalit jibril
  • Start date Start date
K

kalit jibril

Guest
: Uncaught TypeError: $(...).datetimepicker is not a function http://127.0.0.1:8000/formfinance/payments/Add:331 jQuery 2 Add:331:35 Uncaught ReferenceError: fetchPaymentDetails is not defined onchange http://127.0.0.1:8000/formfinance/payments/Add:1

$(function() {$('#datetimepicker3').datetimepicker({format: 'LT'});});$(document).ready(function() {$('#customer_id').change(function() {fetchPaymentDetails();});function fetch Payment Details() {let customerId = $('#customer_id').val();if (customerId) {$.ajax({url: '/handle-input',method: 'POST',contentType: 'application/json',headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},data: JSON.stringify({ customer_id: customerId }),success: function(data) {console.log(data,'Success:');if (data.success) {populateBookingDetails(data.bookingDetails);} else {console.error('Error:', data.message);}},error: function(error) {console.error('Error:', error);}});}}function populateBookingDetails(details) {$('#name').val(details.name || '');$('#room_type').val(12);$('#total_numbers').val(details.total_numbers || '');$('#date').val(details.date || '');$('#time').val(details.time || '');$('#arrival_date').val(details.arrival_date || '');$('#depature_date').val(details.depature_date || '');$('#email').val(details.email || '');$('#phone_number').val(details.ph_number || '');$('#status').val(details.status || '');}}); my expected response is'nt working

<p>: Uncaught TypeError: $(...).datetimepicker is not a function http://127.0.0.1:8000/formfinance/payments/Add:331 jQuery 2 Add:331:35 Uncaught ReferenceError: fetchPaymentDetails is not defined onchange http://127.0.0.1:8000/formfinance/payments/Add:1</p>
<p>$(function() {$('#datetimepicker3').datetimepicker({format: 'LT'});});$(document).ready(function() {$('#customer_id').change(function() {fetchPaymentDetails();});function fetch Payment Details() {let customerId = $('#customer_id').val();if (customerId) {$.ajax({url: '/handle-input',method: 'POST',contentType: 'application/json',headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},data: JSON.stringify({ customer_id: customerId }),success: function(data) {console.log(data,'Success:');if (data.success) {populateBookingDetails(data.bookingDetails);} else {console.error('Error:', data.message);}},error: function(error) {console.error('Error:', error);}});}}function populateBookingDetails(details) {$('#name').val(details.name || '');$('#room_type').val(12);$('#total_numbers').val(details.total_numbers || '');$('#date').val(details.date || '');$('#time').val(details.time || '');$('#arrival_date').val(details.arrival_date || '');$('#depature_date').val(details.depature_date || '');$('#email').val(details.email || '');$('#phone_number').val(details.ph_number || '');$('#status').val(details.status || '');}}); my expected response is'nt working</p>
 

Latest posts

Online statistics

Members online
0
Guests online
3
Total visitors
3
Ads by Eonads
Top