1

Hey There hope you all are fine from CORONA. I have a little issue that i have a page on which all countries name are coming from the database and displaying on the page.

What i want, i want them to be clickable as a <li> </li> and by using the AJAX i want their country code to be displayed without using the form

I can't read the response of the node js sql by the Javascript/jQuery

it is working with the form but i don't want to use form is there any kind of help will be appreciated

enter image description here enter image description here

 $("#Ul_id button").click(() => {
        console.log($(this).closest('button').val())
    }) //this response undefined
Engineer S. Saad
  • 378
  • 4
  • 19

0 Answers0