Instead of:
data: "id=" + thisId + "&value=" + thisValue
do:
data: { id: thisId, value: thisValue }
This way jquery will take care of properly URL encoding the values. String concatenations are the root of all evil 🙂
Instead of:
data: "id=" + thisId + "&value=" + thisValue
do:
data: { id: thisId, value: thisValue }
This way jquery will take care of properly URL encoding the values. String concatenations are the root of all evil 🙂