I have a relationship with the option to add add a new post checked.
I've added the field on the frontend submission form and it works fine. I can select a post to create a relationship and I can add a new post to create a relationship.
Adding a new post opens an iframe window for inputting the content into the new post. I'd like to pass jquery variables to the fields inside the iframe but it doesnt seem to be working.
To test i tried changing the css on an elemnt inside the iframe but couldnt get that to work either.
here's my code...
$(document).ready(function() {
$('#rwmb-modal-iframe').on('load', function() {
$('#rwmb-modal-iframe').contents().find("#wpwrap").css("background-color", "red");
});
});