Virajsinh

jQuery Form Input Element Value Get As Script

Oct 8th, 2025
2,121
0
Never
9
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.75 KB | Source Code | 0 0
  1. <script type="text/javascript">
  2. $('#addForm :input').each(function() {
  3.     var id = $(this).attr('id');
  4.     if (!id) return; // skip elements without an ID
  5.  
  6.     var tag = this.tagName.toLowerCase();
  7.     var type = $(this).attr('type');
  8.     var value;
  9.  
  10.     // Handle checkboxes/radios
  11.     if (type === 'checkbox' || type === 'radio') {
  12.         value = $(this).is(':checked') ? $(this).val() : '';
  13.     } else {
  14.         value = $(this).val();
  15.     }
  16.  
  17.     // Escape quotes in value
  18.     value = value.replace(/"/g, '\\"');
  19.  
  20.     // Build line based on element type
  21.     if (tag === 'select') {
  22.         console.log(`$("#${id}").val("${value}").trigger('change');`);
  23.     } else {
  24.         console.log(`$("#${id}").val("${value}");`);
  25.     }
  26. });
  27. </script>
Advertisement
Comments
  • Texaslir
    188 days
    Comment was deleted
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Zatalno
    9 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=putjpnmfwo
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment