0
-
diggthis.js + jQuery .wrap() is not working, causing Firefox to freeze and Safari to crush
I came across a forum post where user was experiencing problems while using Digg this (diggthis.js) button code with jQuery’s .wrap() method. According to him Mozilla Firefox (FF) is freezing and Apple Safari is crushing when he tries to wrap the div that contains diggthis.js file with another new div like so:
-
Remove n’th table column – jQuery plugin
My usual short Friday post. Today I would like to share with you a new utility I wrote to work with HTML tables. We already have jQuery functions to add table row, remove table row (on user click), add table row number plugin and now here is jQuery code to remove table column. jQuery utility to remove table’s n’th column: $.fn.removeCol = function(col){ // Make sure col has value if(!
-
Remove table row on user click
This post is about removing a table row on user click. I needed this functionality for a project of mine. Online application had a table with data that user can dynamically add and remove. With progressive enhancement I also need to add a functionality to one of the tables that enables users to delete table rows when that table row is clicked. jQuery code to delete clicked table row came out to
-
Remove the bottom table row using jQuery
I have posted a small jQuery code a while ago which adds a table row at the bottom of any given table. The code takes into the consideration tbody tag and also can be used as a jQuery plugin. Recently I was asked to write a jQuery or JavaScript code that removes the last/bottom row from the given table. The jQuery code I wrote was surprisingly small. jQuery code to remove bottom/last table row
-