Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

e.target.value svelte

<script>
	let name = 'change me';
	
	function onInput(event) {
		name = event.target.value
	}
</script>

<input value={name} on:input={onInput}>

<h1>{name}!</h1>
 
PREVIOUS NEXT
Tagged: #svelte
ADD COMMENT
Topic
Name
6+8 =