Advertisement
Guest User

Test for a dynamic element

a guest
Oct 19th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.67 KB | None | 0 0
  1. $(".fltCount").live('change', function(event){
  2.     var $inDate = $(this).attr('data-date');
  3.     switch($(this).val()){
  4.         case '0':
  5.         break;
  6.         <cfoutput query="rsFlightStatusCodes">
  7.             <cfif idFlightStatusCode NEQ 0>case '#idFlightStatusCode#':</cfif>
  8.         </cfoutput>
  9.         if($('<input name="txComments_' + $inDate + '" id="txComments_' + $inDate + '" value="" maxlength="200" size="100">').length == 0){
  10.         $('#formTable').append('<tr><td class="dateWidth">Comments: '+ $inDate +' </td><td colspan="8" class="segmentTitle"><input name="txComments_' + $inDate + '" id="txComments_' + $inDate + '" value="" maxlength="200" size="100"></td></tr>')
  11.                 }else{
  12.  
  13.                 }
  14.                 break;
  15.             }
  16.         });
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement