is it possible to have php code within jquery or do i have to use ajax to grab the values.
ex of what i was trying
function blah() {
//Creates the name tag
$("#newitem").append("<tr><td><fieldset><legend><select name='produce'><option>--Select--</option><?=produce();?> </select></legend><table width='200'><tr><td>Ammount</td><td>On Hand</td><td>Cost</td></tr><tr id='txtHint'></tr>");
}
as you can see that i have a php function called produce(). but when i try to use this it doesnt work. if i take out the php code it works.
hope that there is an easy fix for this
thanks in advanced