Skip to main content

Timeline for Pass variable from phtml to js

Current License: CC BY-SA 4.0

10 events
when toggle format what by license comment
Jul 11, 2018 at 12:59 history tweeted twitter.com/StackMagento/status/1017030597519314945
Jul 10, 2018 at 11:46 vote accept Gagan
Jul 10, 2018 at 11:45 answer added Gagan timeline score: 2
Jun 27, 2018 at 11:43 comment added Gagan No, thats not what I want. I want to pass the data. Not use like attr attribute function. I want to pass like magento2 does
Jun 27, 2018 at 11:34 comment added Sukumar Gorai Yes I gave you the option to get url from your phtml to js as per the code you have posted.
Jun 27, 2018 at 11:23 comment added Gagan Thanks. But that does not answer the question. I want to send the data from phtml to js and get here.
Jun 27, 2018 at 11:16 comment added Sukumar Gorai I understand there is no issue with modal popup. You can try $("#popup-modal").attr( 'action' ); to get the form action url.
Jun 27, 2018 at 11:12 comment added Gagan Yes, the modal is opening correctly, so no issue in that.
Jun 27, 2018 at 11:06 comment added Sukumar Gorai #popup-modal Is this the form id?
Jun 27, 2018 at 10:53 history asked Gagan CC BY-SA 4.0