Sunday, 15 August 2010

jquery - Setting a HTML div to visible using query -



jquery - Setting a HTML div to visible using query -

i have next div in view:

<div id=somemessage> message </div>

that remain hidden until jquery script finds status true , changes visible:

//in specific case there 12 items if (items > 10) { $('#somemessage'). (i don't know here, best utilize html's disabled attribute?) }

if help out appreciative. thanks

set div hidden default :

<div id=somemessage style="display:none"> message </div>

and later, show using jquery's show() method :

//in specific case there 12 items if (items > 10) { $('#somemessage').show(); }

jquery html hidden visible

No comments:

Post a Comment