Insert data in a form inputbox with jquery -
In my main page, I have a div in which some external HTML content is displayed here I have some radio buttons When the user selects a radio, then the parent page has to be changed.
The external code is such:
function update form (val) {$ ('#photourl', window.parent.document.frm) .val (val) .change (); }; ... & lt; Input name = "photo" id = "photo" value = "someVal" onclick = "updateForm (this.value)" type = "radio" & gt;
It works fine in Firefox, Opera, Flock, MSI. It does not work at all in Chrome and Safari .
Can anyone help me? Thanks
$ ('# photoreal', second argument in window.parent.document) Frm )
has been acquired with a nonstandard technique. Try code ($ '' ('# photourl', $ ('# frm', window.parent.document) [0]), or because it is actually in a document (according to your comment), just get Get rid of it
Comments
Post a Comment