daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.         var dotNetPrefix = $("[id$='prepended_ID_value']").attr('id');
  3.         if (dotNetPrefix !== undefined) {
  4.             dotNetPrefix = dotNetPrefix.replace('prepended_ID_value', '');
  5.             dotNetPrefixID = '#' + dotNetPrefix;
  6.             console.log('dotNetPrefix = ' + dotNetPrefix);
  7.             testDotNet('prepended_ID_value');
  8.         } else {
  9.             console.log('Hidden Field is Missing! => <asp:HiddenField runat="server" ID="prepended_ID_value" Value="dotNet_ID_Prefix" />');
  10.         }
  11.  
  12.     });
  13.  
  14.     function testDotNet(getID) {
  15.         var test_dotNetPrefixID = $(dotNetPrefixID + getID).val();
  16.         console.log('$('' + dotNetPrefixID + getID + '').val() = ' + test_dotNetPrefixID);
  17.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top