jQuery(document).ready(function($) { // Find the SKU label and input const skuLabel = $('label[for="aps-sku"]'); const skuInput = $('#aps-sku'); // Add click handler to the SKU label skuLabel.on('click', function(e) { e.preventDefault(); // Get current URL const urlParams = new URLSearchParams(window.location.search); const postId = urlParams.get('post'); if (postId) { // Set the value in the input field skuInput.val(postId); // Optional: Add visual feedback skuInput.css('background-color', '#e8f0fe') .delay(200) .queue(function(next) { $(this).css('background-color', ''); next(); }); // Optional: Copy to clipboard navigator.clipboard.writeText(postId).then( function() { // Success feedback console.log('Post ID copied to clipboard'); // Create and show a temporary success message const message = $('