Friday, 15 August 2014

javascript - Jquery effects from c# -



javascript - Jquery effects from c# -

i wondering if there code, dll allows developer give effects server command code behind. have empty div , 2 textboxes select dates in kinda leave application form. when user select 2 values 11-oct-2014 , 14-oct-2014 in textboxes want append html table markup empty div , consist number of tr equal days of leave. doing in ajax updatepanel , and showing on form. it's working fine want know if want utilize jquery fadein , fadeout effect after appending table markup div, possible?

this generic, can adapt suit...

http://jsfiddle.net/dv9a0ubw/1/

html

<button id="add-row">add row</button> <br /> <br /> <table id="my-table"> <tr> <td>something 1</td> <td>something 2</td> <td>something 3</td> </tr> </table>

javascript

$("#my-table").on("domsubtreemodified", function() { $(this).find("tr:last").hide().fadein(2000); }); $("#add-row").on("click", function() { var $row = $("<tr><td>new 1</td><td>new 2</td><td>new 3</td></tr>"); $("#my-table").append($row); });

as can see, button adds row , that's it. animation applied event handler detecting alter in table. can retro-fit table modifying table selector, using class if mean utilize in multiple instances.

javascript c# jquery html asp.net

No comments:

Post a Comment