I have a table that is sorted successfully using the tablesorter plugin. However, I want to highlight the text in a specific text box on a specific line. It has a unique identifier, but when I post my code after the sort code, it does not work. Here is my code:
jQuery(document).ready(function() {
jQuery("#filetable").tablesorter({
sortList: [[3,1]],
widgets: ['zebra'],
testExtraction: "complex"
});
if(jQuery("#new_foldername").length > 0){
jQuery("#new_foldername").focus(function() { jQuery(this).select(); } );
}
});
If I inserted a warning immediately after checking to see if #new_foldername exists, I see a warning and I see text highlighted in the background (so my code to highlight the text works). When I click to close the warning, the table finishes sorting ... and the text no longer stands out.
Any ideas what could happen?