javascript - XMLSerializer skips element values -
i've got javascript code serializes entire dom tree follows:
(new xmlserializer()).serializetostring(document) but different i'd expect. specifically, html source, not values of various input/selects. if objects inserted dom, objects, again, no values.
however, if walk through dom in javascript other purpose, have access every input's value.
what gives? obviously, i'm missing basic concept, i've no idea what.
can full dom html/xml formatted string, with input/select values? if so, how?
this due fact dom form input maintains value property (which reflects current state) separately value attribute (which represents initial value of input , used xmlserializer serialize dom).
i've written several times on stack overflow. here's recent example: jquery .attr('value', 'new_value') not working?
Comments
Post a Comment