473,408 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

deleting a row of table that cursor pointing to it

deleting a row of table that cursor pointing to it.so can any one help me how to do this..?
Apr 29 '16 #1
3 1360
Dormilich
8,658 Expert Mod 8TB
you are aware that by merely pointing the cursor at a row it may delete more rows than you intend to delete (since when one row is deleted, the next row is placed under the cursor).

anyways, the core principle for deleting a row is quite simple.

Expand|Select|Wrap|Line Numbers
  1. // evt - the event object received when the desired event is triggered
  2. var row = evt.target.closest('tr');
  3. row.parentNode.removeChild(row);
Apr 29 '16 #2
Thanks for your response.but i did tried it before its not working
Apr 29 '16 #3
Dormilich
8,658 Expert Mod 8TB
"not working" is not a useful error description. what is happening that shouldn’t (and vice versa)? what about the error console? have you checked using break points?

and as far as the example code is concerned, it does work (albeit not in IE).
Apr 29 '16 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Hoang | last post by:
does anyone know how to dump the table structure and data from a mysql database? I am connected to the database externally so "SELECT * FROM database INTO OUTFILE file" doesn't work for me. ...
3
by: ScottH | last post by:
I was looking for thw SQL to delete dupes from a table, and came across this. All who saw it agreed in principle, but I can't quite figure out the logic. If we are deleting all rows whose rowid...
3
by: Joachim Klassen | last post by:
Hi all, first apologies if this question looks the same as another one I recently posted - its a different thing but for the same szenario:-). We are having performance problems when...
0
by: John Katsaridas | last post by:
Hello folks Could anyone tell me how I can obtain the x,y id cell in a grid table? I would really appreciate your help. John
1
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
4
by: stokefan | last post by:
Hi all, I wondered if anyone knew if it was possible to delete entries in an MS Access database table from just entering data into it? I shall explain : If you have a web form (in asp.net...
0
by: rob | last post by:
I have a visio file that models a database. I added a view to the project but then decided to delete it again. I simply hit the delete key after which I got a dialog saying: "Remove selected item...
2
by: sajithamol | last post by:
How we can find out by Query that wether a particular table exists?
13
by: ramprakashjava | last post by:
hi, i hav "java.lang.NullPointerException" error while Deleting table records using checkbox in jsp here i enclosed files help quickly plzzz.. ...
7
lilp32
by: lilp32 | last post by:
I am working with a table in Access 2010 which includes test result (0/1) and date of result by subject ID in addition to a number of other fields. I would like to include all results up until...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.