jquery find element with avalue of attribute
$("ul").find(`[data-slide='${current}']`)
jquery find element with avalue of attribute
$("ul").find(`[data-slide='${current}']`)
find element with data attribute jquery
$("ul").find(`[data-slide='${current}']`)
get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
get name jquery
$('#yourid').attr('name')
jquery show hide based on data attribute
$('form')
.children()
.filter(function(){
return $(this).data('show') === 'pro';
})
.show();
$('form')
.children()
.filter(function(){
return $(this).data('show') === 'home';
})
.hide();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us