i used this line of code but it didn’t work
$("a#link").attr("href",$(this).attr('tempref').val());
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you call:
that returns a value that is not the jquery object so you can not add .val() after that and you cannot refer to the object with this. If you want to assign the value to the href attribute you must do:
If you don’t want to do this, try to explain better your question.