Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <table id="info">
  2. <% for (int i = 0; i < 15; i++) {%>
  3. <tr>
  4. <td>
  5. <select name="prefix<%=i%>" class="form-control">
  6. <option>044</option>
  7. <option>51</option>
  8. <option>555</option>
  9. <option>43</option>
  10. <option>33</option>
  11. <option>66</option>
  12. </select>
  13. </td>
  14. <td>
  15. <input name="phone" id="number<%=i%>" type="text" onblur="test2()" class="form-control input" >
  16. </td>
  17. <td>
  18. <select name='status<%=i%>' class="form-control">
  19. <option>The number is belong to man</option>
  20. <option>Out of area</option>
  21. <option>Dialed already</option>
  22. <option>The number is not defined</option>
  23. </select>
  24. </td>
  25. <td>
  26. <textarea id="desc<%=i%>" class="form-control" rows="3"></textarea>
  27. </td>
  28. </tr>
  29. <%}%>
  30. </table>
  31.  
  32. $('#info tbody').on('click', 'tr', function() {
  33. var $td = $(this).closest('tr').children('td');
  34. var clId = $td.eq(0).attr('id');
  35.  
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement