2017-02-17 114 views
0

我有这样的网址 http://localhost/hotelbooking/hotels.php?city=berlin&start=Feb+17%2C+Fri&end=Feb+24%2C+Fri&room=1&guest=1&search_hotel=&roomfacility=1,2,3我想从roomfacility的参数值中删除一个数字。从url中删除特定的查询字符串参数值

我该怎么做?提前致谢。

+0

使用php对不对? – Shine

+2

你的问题不清楚。你想在一个变量中得到querystring,没有这个值,或者你想重定向到相同的url,但没有这个值?你希望通过这样做来达到什么目的? – Archer

+2

@Shine php不在问题标签中。 – Archer

回答

1

如果您想要使用选中的复选框值在url中使用,请使用此选项。

var facilities = $.map($("input:checkbox[name=YourInputName]:checked"), function(n, i){ return n.value; }).join(','); 
相关问题