–In the variable line below I declared a variable (xwid) as 690. But when I try the code by using the variable of $xwid, the width never updates. Any ideas?
$xwid=690; // my var
// my code
$('.iframe-link').html( '<iframe src="reasons.html" frameborder="0" width=$xwid height="305" scrolling="auto">
Variables in Javascript are not declared this way
EDIT: Your code should look like thiis