Trigger function working in all browsers except chrome
Hello and thanks for the superb forum!!
Im using a script where you can add a postal code on a form which will be sent to an iframe. It works in all browsers exept for Google chrome.
This is the code im using:
- <?php if (isset($_POST['postcode']) && !empty($_POST['postcode'])) { ?>
- <script>
- $( document ).ready(function() {
- $('#sd-iframe').load(function() {
- $('#sd-root').trigger('setFieldValue', {
- name: 'postcode',
- value: '<?php echo htmlspecialchars($_POST['postcode']); ?>'
- });
- });
- });
- </script>
- <?php
- }
- ?>
I have searched for solutions everywhere but didnt find. Hopefully my hero is here :)
Thnx Ralf