0

I have a menu in asp.net page like below:

<ul class="dropdown-menu">
<li>
<a href="employerlist.aspx?id=;javascript:getQueryStringValue('id');">Add Employer</a>
</li>
<li></li>
</ul>

I want to redirect pages to different urls along with a value which returned from the javascript function "getQueryStringValue". Now the problem is I cannot concatenate the url with the javascript function in "href". Any help will be appreciated.

1 Answer 1

1

Like this:

<a href="" onclick="location.href='employerlist.aspx?id=' + getQueryStringValue('id');return false;">Add Employer</a>
Sign up to request clarification or add additional context in comments.

Comments

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.