What do you want to save?
Add Code snippet
New code examples
-
Html 2022-01-24 09:56:13
html create a multi-line text input
<html> <head> <title>Textarea Elements</title> </head> <body> <form> <label for="multiLineInput"> <!-- Add the label if you want --> <p>This is an input element tha... Add solution -
Javascript 2021-11-18 20:32:23
trigger click on checkbox jquery
$('input[type="checkbox"]').click(function(){ if($(this).is(":checked")){ //input element where you put value $("#isClicked").val("Yes"); // console.log($("#isClicked").val()); ... Add solution -
Javascript 2021-11-11 08:22:11
useRef example
/* A common use case is to access a child imperatively: */ function TextInputWithFocusButton() { const inputEl = useRef(null); const onButtonClick = () => { // `current` points to the mounted text input element inputEl.current.focus(); ... Add solution -
Javascript 2021-10-28 10:50:05
vuejs directives list
/* Here we have 5 vuejs directive to use: v-text v-once v-html v-bind v-model */ // ------------ v-text ------------ // Description: Instead of using interpolation, you can use the v-text directive. It performs the same job: <span v-text="name&qu... Add solution -
Javascript 2021-10-26 13:26:14
vue directive access this
/* Here we have 5 vuejs directive to use: v-text v-once v-html v-bind v-model */ // ------------ v-text ------------ // Description: Instead of using interpolation, you can use the v-text directive. It performs the same job: <span v-text="name&qu... Add solution