Please let me know in comments if Im not explaining good.
As the question title says everything can you please tell me how can I decode the dollar sign($) as it goes to %24 in url when submited from the page like you can use this link for example.
http://mubisoft.fh2web.com/Kayak/submit.html
try submiting data and it will get the data from url and will try to populate the input field again but when it tries to get data from url it take %24 with it instead of $ sign.
here is the code of javascript that im using in it.
var url = window.location.href;
var input = $( "#one" );
var input2 = $( "#two" );
if(url.indexOf("?") >= 0){
var params = url.split('?');
var params1 = params[1].split('&');
var a = params1[0].split('=');
var r = a[1];
var a = params1[1].split('=');
input2.val(a[1]);
input.val(r); // here are populating data getting from url
}
$( "#one" ).blur(function() {
if(input.val().substring(0,1) == '$'){
return false;
}else{
input.val( "$ "+input.val() )
}
});