how to add data-toggle and data-target using jquery
$("button").on("click", function(){
$($(this).attr("data-target")).modal("show");
});$("button").on("click", function(){
$($(this).attr("data-target")).remove("model");
});
Also in JavaScript:
- axios react post form data
- js filter blur Property
- How do you select a particular option in a SELECT element in jQuery?
- jquery closest
- Errors messages produced from JavaScript data validation.\
- jquery set hidden field value
- convert pdf to base64 javascript
- endpoint js
- assign array to another array javascript
- js window dimensions
- javascript check if object is empty
- hide show div jquery
- how react work
- check if modal hide jquery
- react native image
- react native search bar
- mutationobserver js
- js email regex
- check if function javascript
- Node Sass could not find a binding for your current environment
- js add delay
- comment in jsp file
- if and if and else javascript
- click point invert zoom react simple map