if else condition on hide and show in jquery
<script type="text/javascript">
$(document).ready(function(){
$(".fil-cat").click(function(){
var val = $(this).attr('id');
if(val == 'allCat'){
$('.main-card').show();
}else {
$('.main-card').hide();
$('.'+ val).show();
}
});
});
</script><script type="text/javascript">
$(document).ready(function(){
$(".fil-cat").click(function(){
var val = $(this).attr('id');
if(val == 'allCat'){
$('.main-card').show();
}else {
$('.main-card').hide();
$('.'+ val).show();
}
});
});
</script>
Also in JavaScript:
- node js how to basic auth to specific urk
- stop a setinterval
- updatable time js
- parse csv javascript
- Material-ui Add icon
- javascript form submit on button click check if required fields not empty
- how to remove background in jquery
- convert app function to class component react native
- rest arguments javascript
- cannot find module @babel/compat-data/data/corejs3-shipped-proposals
- how to add button in alert box in react native
- implement the remove property function
- get the location of an item in an array
- cli run js
- sort by attribute in reactjs
- how to reload webview in react native
- js get first element by class
- node js + mongoose
- javascript getdate
- how get height elemnt with that margin in js
- send event to child component angular
- empty array length javascript
- how to use node.js in html file
- how to create a smooth effect in javasript