0

Example:

<a onclick="popitup('/upload/?path=/'+$("input[name=file]").val(),'')"> </a>

Please help to solve this problem.

2

1 Answer 1

1

This is considered a bad practice because it makes it harder to maintain the in the future because you will forget you have it inline in the code.

If you have to do this try this...

<a onclick="popitup('/upload/?path=/'+$(\"input[name=file]\").val(),'')"> </a>

you need to escape the inner

Sign up to request clarification or add additional context in comments.

1 Comment

@dinesh , if my answer worked for you can you vote up or accept it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.