Search
 
SCRIPT & CODE EXAMPLE
 

HTML

alpine function

<div class="card" 
     x-data="data()" 
     @click="foo(number)" 
     x-text="number">
</div>    
<!-- ... -->
<script>
  function data(){
    return {
      number: '456',
      foo(num){
        alert(num);
      }
    }
  }
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: underline code 
Html :: roslaunch if else 
Html :: androif intent in html link 
Html :: confirmed button bootstrap 
Html :: html peseta 
Html :: table body element 
Html :: html "/n" not woring 
Html :: html inline label 
Html :: shopify random number 
Html :: html datetime format 
Html :: change text color exactly one word inside text html 
Html :: textarea self expandable height 
Html :: expo webview local html 
Html :: how to make a svg of full width of a webpage html 
Html :: restrict file upload type angular 
Html :: accordion bootstrap 4 
Html :: html projects for beginners 
Html :: launch html in google chrome from terminal 
Html :: ubuntu 22.10 vmware 
Html :: html to pdf react 
Html :: v-tabs 
Html :: strip html from text 
Html :: <= meaning 
Html :: alpinejs event target 
Html :: time in website 
Html :: html section tag 
Html :: Embed Facebook feed into website 
Html :: html meta information 
Html :: drivers booster 9 Pro key 
Html :: how to write bangladeshi phone number in html 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =