jQuery input button is not firing -
i have jquery input button
1 below not firing , can't figure out why.
<input type="button" value="<> embed" id="embedlink" data-reveal-id="embedpopup" />
however, if this, fires. why happening?
<a href="javascript:void(0);" id="embedlink" data-reveal-id="embedpopup"><> embed</a>
jquery code:
$(document).on('click', '#embedlink', function(){ if ($("#popupimg iframe").length){ = $("#popupimg iframe"); var c = a.width(); = a.height(); } else{ var = new image(); a.src = $("#popupimg img").attr('src'); var c = a.width; = a.height; } max_closeup_image_width = c; max_closeup_image_height = a; $("#embedimagewidth").val(c); $("#embedimageheight").val(a); $("#embedhtmlcode").val(embed_code_html_1 + c + "' height ='" + + embed_code_html_2); });
Comments
Post a Comment