User login

Reply to comment

Using 'none' to disable highlighting

If you would like to use a hiliteColor value of 'none', make the following change to the script file:

1) Find the following code: "hightlight : function()".

You will see the code for this function, which will be something like this:

this.style.backgroundColor= options.hiliteColor;
this.onfire = true;

2) Change it so that it is as follows:

if(options.hiliteColor != 'none') {
this.style.backgroundColor= options.hiliteColor;
this.onfire = true;
}

That's it! Now, when you initialize the table, just set the hiliteColor value to 'none', like this:
$("#mytable").colorize( {hiliteColor: 'none'} );

Great plugin. Hope this helps.

Reply

The content of this field is kept private and will not be shown publicly.