I would like to change all elements, that have the name "hiddenElement" with jquery
alle elements should get the style
style.display='none';
style.position='absolute';
How is the syntax in jquery?
I would like to change all elements, that have the name "hiddenElement" with jquery
alle elements should get the style
style.display='none';
style.position='absolute';
How is the syntax in jquery?
Try:
$("[name='hiddenElement']").hide().css("position","absolute");
You use [attribute=value]
to select matching elements
$(*[name=hiddenElement]).css({'display':none,'position':'absolute'});
I believe "name" should be unique(unless your talking about radio buttons). Do you mean "class"?
$(document).ready(function() {
$('.hiddenElement').css({'display':'none','position':'absolute'});
});