Hello,
I wrote a php program all in HTML/PHP a few years ago for a non-profit. I'm giving it a face lift using new technologies for HTML/CSS/JQUERY/UI/PHP and I'm not much of a java person so I've hit a couple snags lol.
Basically, I have a new autocomplete text box that fills from a db. I have two links, view-grant, edit-grant, which when clicked on open different <span>'s lower on the page with either read-only view or editable text boxes. I need to submit the autocomplete (will submit back to same page and use php to deal with logic) input box to fill the variables in those spans though. Can I nest the show span function with the submit form function like below or is there a better procedure:
function submitform()
{
document.forms["myform"].submit();
function showStuff(id) {
document.getElementById(id).style.display = 'block';
}
}
auto-1.jpg
auto-2.jpg
Pics attached. Just want to make sure this is possible before I start all the php logic. Thanks for your input.