Click here to Skip to main content
15,886,100 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I have table, where in each row has Edit button.
On click on Edit, the entire table gets fadeTo using the following code
$("#ProductListTable_Div").fadeTo("slow", 0.33);

And the current row is replaced by div which has Save and Cancel Button

So when the user clicks the Save or Cancel button the div is hidden and the entire table is restored to normal state.

Problem:
The fadeTo effect still exist. I want to remove the fadeTo effect so that the table is visible.

Any idea, how to go about it?

Thanks in advance
Posted

Hi,

You can do it in this way:
JavaScript
$("#ProductListTable_Div").fadeOut("slow", function() {});


Try and use this code where you want to remove that effect.

Hope this helps !! :) :)

Regards,
Praneet Nadkar
 
Share this answer
 
Comments
dhage.prashant01 28-Oct-14 5:13am    
fadeOut is not solution, it makes table to be hidden.
Here is the solution.
If you check the HTML element, it adds the style property as following in my case
style="opacity: 0.33;"

You can just do following to remove the fadeTo effect
$("#ProductListTable_Div").css('opacity', '1');
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900