Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Alpine.js: button using @click function not working

don't forget to add x-data="{}".

for example:
<tr x-data="{}">
	<td>
    	<button type="button" x-on:click="alert('hello world')">
    </td>
</tr>
 
PREVIOUS NEXT
Tagged: #button #function #working
ADD COMMENT
Topic
Name
7+9 =