Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to find which DIV is selected and get selected DIV element values in jquery

How to find which DIV is selected and get selected DIV element values in jquery

Scheduled Pinned Locked Moved .NET (Core and Framework)
javascriptdockertutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sr159
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • S sr159

      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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups