I am attempting to open an external url (outside of our network) and show a hidden div (for video playback).
My HTML code:
<div id="myDiv">
<input type="button" id="myButton" value="Watch Career Video"></input>
</div>
My JS code:
$(document).ready(function() {
$("#myDiv").on('click', '#myButton', function() {
//re-direct to career video url
window.location.href = "https://www.mynextmove.org/profile/summary/13-2021.02";
//show video div area ** THIS DOES NOT WORK ?? **
$('#careervid-wrapper').show();
});
});
Specifically, how can I get 'careervid-wrapper' to show? Do I need to use AJAX? Cross Domain Policy workarounds? Abandon ship?
- URL can be opened in a new tab or window, it does not matter.
- I couldn't get the ajax success to work when I tried using AJAX.
You can see the JSFiddle here: https://jsfiddle.net/aussiejoe/njhsxmq7/