/    Sign up×
Community /Pin to ProfileBookmark

Check all/multile delete.

How can delete multiple or all rows from this table at once.Right now, I can delete only one row at a time.
I’ve attached my code below.

Thanks

[upl-file uuid=536a705f-357a-419e-a893-43397cd32967 size=5kB]multiple_delete.txt[/upl-file]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@miliauthorApr 10.2003 — Thanks khalid.I looked at that site.But I have a slightly different requirement though.

I want to be able to delete all and also delete a particular row by checking a box.

Remove function in this site just starts eliminating rows from last.

Do you know how I can do this?

Thanks,
Copy linkTweet thisAlerts:
@khalidali63Apr 10.2003 — yes,you can add a text field.

Get the value from the text field

The rest of the code is already in place

Just take a look at it and in the code where I delete all rows match the user entered index value with that of the loop index going through ll of the rows and which ever matches remove that.couple of minutes worth code writing.

Cheers

Khalid
×

Success!

Help @mili spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...