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
Post a Comment