Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery .show() and display:inline

Hello I am using this jquery code onclick="jQuery('.hidden').show()" to show the class labeled .hidden this is what the class looks like :

.hidden { display:none}

the issue is when it displays the class its a display:block; I would like it to display it as display:inline; that way its on the same line as the text that comes before. any help would be appreciated been going crazy I googled almost everything related to it but nothing guided me to the right path.

like image 859
cppit Avatar asked Nov 17 '11 04:11

cppit


1 Answers

you could append an explicit css attribute to the element:

onclick="jQuery('.hidden').css('display','inline');"

try this, i hope this helps :)

like image 191
Robert Van Sant Avatar answered Sep 28 '22 09:09

Robert Van Sant