I need to retrieve one php variable in jQuery(The $foods['price'])
,but there is another variable and parenthesis on the left and the right of the variable.I tried to place the the php variable between the parenthesis text()
in the jquery file but not success. How can I retrieve only the variable($foods['price']
? I placed the screenshot below
Thanks in advance