input - jquery - Transfer link title to a inputfield and submit -


i created "fake" tagcloud requested by. user able enter tag names , tag weights. create "wanted" tagcloud.

what work on is, if click on 1 of tags, user should redirected search page tag should automaticly included in search input field. after form should automaticly submitted.

my problem is, dont know how transfer link title inputfield on other page input field using jquery, or else...

you can this.
when user click on tag change document.location = search page.url?keyword=clicked tag value;.
, on search page ::
var keyword = document.location.split("?")[1].split("=")[1];
$("#search keyword text input").val(keyword);

what doing when user click on tag redirect search page value in keyword=clicked tag value variable.

and on search page fetching value , set search text box.
hope helps , code not tested yet works.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -