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. Web Development
  3. Delete button no responding and not remove record

Delete button no responding and not remove record

Scheduled Pinned Locked Moved Web Development
javascripthtmldatabasetools
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.
  • A Offline
    A Offline
    ahmed_sa
    wrote on last edited by
    #1

    I try more time to delete record by jquery but no responding meaning nothing happen my code as following <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scripts/jquery-1.10.2.js"></script> <script> $(function () { $("#btn").click(function () { var x = $("#txt1").val(); var y = $("#txt2").val(); var z = $("#txt3").val(); $("#tb").append(" " + x + " " + y + " " + z + " <input type='button'value='Delete'/> <input type='button'value='Edit'/>"); }); $("#tb").on("click", ".c", function () { $(this).parent().parent().remove(); }); }); </script> </head> <body>

    ID<input type="text" id="txt1" />
    Name<input type="text" id="txt2" />
    Country<input type="text" id="txt3" />
    <input type="button" value="add" id="btn" />

    ID

    Name

    Country

    <input type="button" class="c" value="Delete" />

    Edit

    </body> what remaining in my code or wrong to button delete work

    U 1 Reply Last reply
    0
    • A ahmed_sa

      I try more time to delete record by jquery but no responding meaning nothing happen my code as following <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scripts/jquery-1.10.2.js"></script> <script> $(function () { $("#btn").click(function () { var x = $("#txt1").val(); var y = $("#txt2").val(); var z = $("#txt3").val(); $("#tb").append(" " + x + " " + y + " " + z + " <input type='button'value='Delete'/> <input type='button'value='Edit'/>"); }); $("#tb").on("click", ".c", function () { $(this).parent().parent().remove(); }); }); </script> </head> <body>

      ID<input type="text" id="txt1" />
      Name<input type="text" id="txt2" />
      Country<input type="text" id="txt3" />
      <input type="button" value="add" id="btn" />

      ID

      Name

      Country

      <input type="button" class="c" value="Delete" />

      Edit

      </body> what remaining in my code or wrong to button delete work

      U Offline
      U Offline
      Ujjwal Gupta
      wrote on last edited by
      #2

      i think you are missing 'closing script tag'

      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