[jQuery] ASP.NET Placeholder, JQuery, and live() event
I have a placeholder that houses controls that starts with it's
VISIBILITY set to FALSE. This makes the controls non-existant to
JQuery initially. So I found the LIVE() event, and have been trying
to get it to work alongside autotab (http://www.lousyllama.com/sandbox/
jquery-autotab) with no luck. Any suggestions?
BTW, the commented portions work so long as the controls are loaded
with the page.
$(document).ready(function() {
$('#txtEmployee').live('load', function(){
$(this).autotab({ target:'txtJob', nospace,
format:'numeric'});
});
//$('#txtEmployee').autotab({ target:'txtJob',
nospace, format:'numeric'});
//$('#txtJob').autotab({ target:'txtSuffix', nospace,
format:'numeric', previous:'txtEmployee' });
//$('#txtSuffix').autotab({ target:'txtSeq', nospace,
uppercase, format:'alphanumeric', previous:'txtJob' });
//$('#txtSeq').autotab({ target:'btnSubmit', nospace,
format:'numeric', previous:'txtSuffix' });
//$('#btnSubmit').autotab({ previous:'txtSeq' });
});
Thanks!