The table below utilizes the tabletrim public methods trim()
and untrim(). Click on the buttons above the table to trigger the public methods.
Username
First Name
Last Name
Email
superman
Clark
Kent
man.of.steel@gmail.com
batman
Bruce
Wayne
dark.knight@gmail.com
wonderwoman
Diana
Prince
my.invisible.jet@gmail.com
professorx
Charles
Xavier
professor.x@gmail.com
hulk
Bruce
Banner
green.machine@gmail.com
wolverine
Logan
?
weapon.x@gmail.com
Code for this example
1
2
3
4
5
6
7
8
9
// Capture the tabletrim return varTT=tabletrim($('#tabletrim-example'));// Bind buttons to trigger the public methods on the returned TT object$('#trigger-trim').on('click',function(){TT.trim();});$('#trigger-untrim').on('click',function(){TT.untrim();});