gets the value stored in the data-file attribute; it is a getter, not a setter. If the attribute does not exist, this statement will not create it. To set a value you use:
$(element).data( 'file','kick1' );
Now to select that element and hide it, here is how:
var xy1 = 'kick1';//some string
$('element[data-file=' + xy1 + ']').hide();
Leave a comment on Godsbest's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic