user3903484
user3903484

Reputation: 934

blazor how to use jquery library

in the blazor input binding doesn't work when i use jquery input mask or any plugins like date picker or select 2

im using this library for input mask https://robinherbots.github.io/Inputmask/

Upvotes: 5

Views: 3033

Answers (1)

Chris Sainty
Chris Sainty

Reputation: 8531

In order to use JavaScript libraries with Blazor you must use JavaScript Interop. Blazor needs to be in control of the DOM in order to work correctly. Attempting to use JavaScript without Blazors knowledge will cause lots of issues.

I would suggest reading up about JavaScript Interop on the official docs.

Upvotes: 4

Related Questions