November 7, 201015 yr I have a jquery function that runs when the link is clicked with an id of "this_link". What I want to do is save the id of the link in a variables (so the variable will contain "this_link"). I have tried using jquery's "this" but it doesn't seem to be working. Does anyone know what I am doing wrong? Thanks for any help. $("#this_link").click(function() { var link_id = $(this); });
Create an account or sign in to comment