javascript - Regular expression for url matching -


i have text field have value http://localhost/send/test.php?s/?a=1&o=2 . 3 text boxes . if enter 3 values above url change http://localhost/send/test.php?s/?a=1&o=2&s1=a&s2=b&s3=c . value s1,s2 , s3 not save anywhere . question how check value s1 set ? , how can update value of s1 if change textbox value s1alt text

you can replace using regex

url.replace(/&s1=([^$]+|[^&]+)/i, "&s1=newvalue"); 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -