how to get the href url in an input box using jquery code example Example: get attribute value jquery href var href = $(this).attr('href');