i have a div
<div id="ip">
<input type="text" name="first" value="cobra" class="mark1"/>
<input type="text" name="second" value="python" class="mark2"/>
</div>
i'm serialising it like this,
$('div#ip:input').serialize();
if i do serialization
of the above div
i will get only value's but i want element
also, is there any good way to do that or i have to store the whole html
element
into my database
like above div
, in reality it is going to be huge.
my question: what is the best way to store html element
into database
like above div
with its all values,names,classes fields
must be intact.
i'm using php
in server side.
last question: storing html element
is the only way?