Guest User

Untitled

a guest
Jun 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. function DoNav(theUrl)
  2. {
  3. document.location.href = theUrl;
  4. }
  5.  
  6. <tr onclick="DoNav('myphpscript.php');">
  7.  
  8. onclick="document.forms[0].submit();"
  9.  
  10. $(function() {
  11. $('tr').click(function() {
  12. var mail_id = /* get the mail id of this row... not sure where since I dont' have the HTML */
  13. $('body').append('<form method="post" action="myphpscript.php" id="donavform" style="display:none;"></form>');
  14. $('#donavform').append('<input type="hidden" name="mid" value="'+mail_id+'" />');
  15. $('#donavform').submit();
  16. });
  17. });
  18.  
  19. <!-- 8435 is the mail ID in this example. -->
  20. <tr id="row3">8435</tr>
  21.  
  22. var mail_id = $(this).html();
  23.  
  24. $('#donavform').append('<input type="hidden" name="mid" value="'+mail_id+'" />');
Add Comment
Please, Sign In to add comment