javascript - Hiding part of div element -


i having div element populated on button click, looks this.

http://localhost:8080/sample?q1=asd&q2=ads 

i want hide particular query parameter (say q1 here). how do ?

i want solution in eithre js/jquery/html.

edit: more clear, how div element looks,

<div>   <pre>   "curl -x --header accept: application/json" "http://localhost:8080/sample?q1=asd&q2=ads"   </pre> <div> 

sure, can change address displayed whatever want js:

history.replacestate(null, null, "/whatever url"); 

you can try modifying location.search, refreshes page.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -