24.05.2017, 10:48
Lot of thanks!
$(function() {
function seturl(url) {
$('#widget-2 iframe').prop('src', url);
}
$('.btn-1').on('vclick', function() {
seturl('https://forum.logicmachine.net');
});
$('.btn-2').on('vclick', function() {
seturl('http://openrb.com');
});
});
Modified code for my use!
Which is the event to trigger On/Off the Widget?
$(function() {
function seturl(url) {
$('#widget-2 iframe').prop('src', url);
}
$('.btn-1').on('vclick', function() {
seturl('https://forum.logicmachine.net');
});
$('.btn-2').on('vclick', function() {
seturl('http://openrb.com');
});
});
Modified code for my use!
Which is the event to trigger On/Off the Widget?