I have created two attributes from magento catalog attributes. I want to hide and show attribute on basis of second attribute value. I added a js file to the main.xml file like this :
Now i want to alert a value of attribute for that i added
alert($('#is_product_returnable').val()); to the custom.js file.
But its not working. How can i achieve this using my custom.js file or is there any other way i can hide/show attribute?