Search
 
SCRIPT & CODE EXAMPLE
 

HTML

change icon on button click

<button type="button" id="eye" class="btn btn-default" onclick="show()"> <i class="fa fa-eye"></i> </button>
<script>
  function show() {
        $('#eye').find("i").toggleClass("fa-eye fa-eye-slash");
  }
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: angularjs href variable 
Html :: how to write python in html 
Html :: dropdown bootstrap 
Html :: data list in input tag html 
Html :: bootstrap link 
Html :: html 
Html :: html fax 
Html :: html color names 
Html :: seo tags in html 
Html :: change icon html 
Html :: markdown bulleted list 
Html :: vue render html raw 
Html :: express send html file 
Html :: phone icon html 
Html :: difernce between innertextand neer html 
Html :: pink floyd hey you 
Html :: Responsive container centered 
Html :: mysql date time to html input datetime-local value 
Html :: fa facebook icon 
Html :: html post form 
Html :: comment in html5 
Html :: Translate Text html in magento 2 
Html :: how to add a image file in html 
Html :: Description For Page html 
Html :: javascript select option attribute 
Html :: disabled attribute is not working in html 
Html :: bootstrap modal remove gray background 
Html :: how to include a dash in html 
Html :: contact form html code 
Html :: ai writer 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =