how to get source code of generated dform

62 views
Skip to first unread message

izhan khalib mohd

unread,
Dec 11, 2013, 10:06:15 PM12/11/13
to jquery...@googlegroups.com
hello,

how do I  capture the generated source code in <form id="myform"></form> , i have tried captured it through php ob_start but  my variable $myStr could not captured it .. i print the $myStr still the result is <form id="myform"></form> , not the generated source code.

Please help.

<?php
ob_start();
?>
<form id="myform"></form>
<?php
$myStr = ob_get_contents();
ob_end_clean();


//echo $myStr ;


?>

Daff

unread,
Dec 11, 2013, 11:16:45 PM12/11/13
to jquery...@googlegroups.com
The form is generated on the client side not in PHP. You can get the HTML by $('#myform').dform(...).html() in JavaScript.
Reply all
Reply to author
Forward
0 new messages