Closed rahul7p closed 5 years ago
@t4t5 I want to set dynamic value in input field when sweet alert open. inputValue : text_val
here text_val is dynamic value And when I set dynamic value then it's showing me undefine.
You can do it like this:
swal("Write something here:", { content: { element: "input", attributes: { value: "Hello" } } })
@t4t5 I want to set dynamic value in input field when sweet alert open. inputValue : text_val
here text_val is dynamic value And when I set dynamic value then it's showing me undefine.