Closed
Description
Description
According to jQuery.get documentation you can use null
as success function to be able to use dataType
. But it seems that it's not working. The only way to get text from JSON response is to use $.noop
. So this need to be fixed or documentation needs to be updated.
I use jQuery 3.6.0.
Link to test case
await $.get("https://httpbin.org/json", null, "text")
await $.get("https://httpbin.org/json", $.noop, "text")