tuupola / jquery_chained

Chained Selects for jQuery and Zepto
https://appelsiini.net/projects/chained/
589 stars 283 forks source link

ajax request post method #62

Open LVB2424 opened 7 years ago

LVB2424 commented 7 years ago

Hi, the remoteChain method send data to the url with GET method. Is there a way to use POST ajax method ? Can we add additionas paramether to the url? Thank you and sorry for my english :)

xup6m06c04 commented 7 years ago

You could pass additional value with "depends". Here's the sample code I found.

$("#transmission").remoteChained({ parents : "#engine", url : "/api/transmissions.json", depends : "#value1,#value2" });

tuupola commented 6 years ago

Like @xup6m06c04 said you can use depends to add additional values to the url. POST:ing is not supported.