0

The input:

<input type="hidden" name="TestProp" value="\"Test\", NS">

Ajax call:

    $.ajax({
        url: window.testUrl,
        type: 'POST',
        data: $("#Form").serialize(),
        success:..

The serialized Form returns TestProp=, so this is where the data gets lost. Any ideas on how to serialize form data with quotation marks string?

Asad ali
  • 147
  • 2
  • 11
asdfok
  • 15
  • 6
  • what does it equal? nothing? – Chris Hawkes Jan 15 '20 at 17:27
  • 1
    `"\"Test\", NS"` - That's not how you escape double quotes in an HTML attribute -> [How do I properly escape quotes inside HTML attributes?](https://stackoverflow.com/questions/4015345/how-do-i-properly-escape-quotes-inside-html-attributes) -> `"` – Andreas Jan 15 '20 at 17:28
  • " is the solution. Thank you. – asdfok Jan 15 '20 at 17:45

0 Answers0