Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

Yoke Lee

Greenhorn
+ Follow
since Mar 09, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yoke Lee

Actually........... I solved it.

This is the final code that works:



Hope it helps any other who needs. Cheers
maybe a lil bit piece of code will be helpful.

if it were me, i would use jquery and use each() function.
Hi all

I've been trying to achieve this for several hours but to avail. Hope I can find enlightenment here....

I am trying to make a dynamically form created by jquery in div element in a.php , submit to b.php, then return the result the same div in a.php

So far this is my code

a.php



When I click the a#igniter, it will populate the div panel with a form. I managed it with this piece of code.



With this i have a form (id="group_edit") in div panel in a.php. Great! But, whenever i submit, the whole page goes to b.php instead of the div....

tried this code as well:




but seems like it just never goes there.....

I tried the solutions here:
https://coderanch.com/t/482557/HTML-JavaScript/Submit-dynamically-created-form-jQuery
and
https://coderanch.com/t/480299/HTML-JavaScript/jQuery-form-submit-Form-plugin#2166604

but doesn't work for me....

Please help me.... thanks.....