Jump to content

appending new element with php returned array


funbinod

Recommended Posts

i am trying to create new element that contains a php returned array in it.

$( "#invoice" ).append( '<td id="item"><script>getData("items.php", "item")</script></td>');

the array is returned from 'items.php' and is called with simple ajax technique. its not working, or simply i don't know how can i do that. can anyone please guide me or suggest me some better technique...?

Link to comment
Share on other sites

i was using simple ajax method to getData stored on 'items.php' and insert it on the "<td id='items'> </td>"

 

i've this already in my page.

<td id="item"><script>getData("items.php", "item")</script></td>

it displays everything fine. i wish to add this same line again. but when i .append this element it doesn't work..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...