jQuery input button is not firing -


i have jquery input button 1 below not firing , can't figure out why.

<input type="button" value="&lt;&gt; 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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -