KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to remove all empty values from an url: var s="value1=a&value2=&value3=b&value4=c&value5="; s = s.replace(...???...); alert(s); Expected output: value1=a&value3=b&value4=c I only need the query part of the URL to be taken into account.
Tags (comma-separated)
Save Edits
Cancel