How to find which DIV is selected and get selected DIV element values in jquery
-
hi, i have google autocomplete suggestion in textbox and added jquery autocmplete suggestion to google pac-container div. If i select the jquery suggestions from div, i am able to fire in $(document).on("click", function (e) { ] but i need to get selected element value. below is my div.
LondonUnited Kingdom
London BridgeBengaluru, Karnataka, India
LonavalaMaharashtra, India
Longitude GroupLavelle Road, D Souza Layout, Bengaluru, Karnataka, India
LondenpetKrishnagiri, Tamil Nadu, India
830 LONG DRIVE, ABERDEEN, MARYLAND, UNITED STATES, 21001 2370.628906-4569.779785
830 LONG DRIVE, ABERDEEN, MARYLAND, UNITED STATES, 21001 2371.930664-4571.367188
1 AVENUE DELAFOSSE PROLONGEE 01 BP 2185, ABIDJAN, COTE D'IVOIRE, 2185 320.179077-241.665054
9910 AVALON ROAD NW, ALBUQUERQUE, NEW MEXICO, UNITED STATES, 87121 2105.522949
-
hi, i have google autocomplete suggestion in textbox and added jquery autocmplete suggestion to google pac-container div. If i select the jquery suggestions from div, i am able to fire in $(document).on("click", function (e) { ] but i need to get selected element value. below is my div.
LondonUnited Kingdom
London BridgeBengaluru, Karnataka, India
LonavalaMaharashtra, India
Longitude GroupLavelle Road, D Souza Layout, Bengaluru, Karnataka, India
LondenpetKrishnagiri, Tamil Nadu, India
830 LONG DRIVE, ABERDEEN, MARYLAND, UNITED STATES, 21001 2370.628906-4569.779785
830 LONG DRIVE, ABERDEEN, MARYLAND, UNITED STATES, 21001 2371.930664-4571.367188
1 AVENUE DELAFOSSE PROLONGEE 01 BP 2185, ABIDJAN, COTE D'IVOIRE, 2185 320.179077-241.665054
9910 AVALON ROAD NW, ALBUQUERQUE, NEW MEXICO, UNITED STATES, 87121 2105.522949
You might want to ask this question in the web development forum. It has nothing to do with the .NET Framework, and you will find that it's better to get help from the experts in the appropriate forum.