Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

event input 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: #event #input #svelte
ADD COMMENT
Topic
Name
2+2 =