jquery find element with avalue of attribute
$("ul").find(`[data-slide='${current}']`)
jquery find element with avalue of attribute
$("ul").find(`[data-slide='${current}']`)
name selector jquery
$('td[name ="tcol1"]') // matches exactly 'tcol1'
$('td[name^="tcol"]' ) // matches those that begin with 'tcol'
$('td[name$="tcol"]' ) // matches those that end with 'tcol'
$('td[name*="tcol"]' ) // matches those that contain 'tcol'
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' );
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();
jquery get element attribute
<div data-role="page" data-last-value="43" data-hidden="true" data-options='{"name":"John"}'></div>
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