Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
RichFaces.$('selectCSLPopup').hide();

What I have tried:

i not tried ,
how do i jquery to javascript
Posted
Updated 30-May-16 20:54pm
Comments
Sergey Alexandrovich Kryukov 29-May-16 10:10am    
The question makes no sense. jQuery is JavaScript. Do you mean hiding without using without using 3rd-party libraries? There are many ways...
—SA
Patrice T 29-May-16 10:21am    
what is the question ?
Member 11663301 29-May-16 10:47am    
sir, what is the javascript of, RichFaces.$('selectCSLPopup').hide();
Patrice T 29-May-16 10:50am    
Can you elaborate the question ?
Use Improve question to update your question.
Member 11663301 29-May-16 10:58am    
sir, only how i write jquery to javascript of it, RichFaces.$('selectCSLPopup').hide();

The equivalent of $('selectCSLPopup') is

window.getElementsByTagName('selectCSLPopup')

HTML DOM getElementsByTagName() Method[^]

And for hide it is

.style.display='none'

javascript hide/show element - Stack Overflow[^]

However I suspect your pasted code is wrong and you actually meant $('#selectCSLPopup') or $('.selectCSLPopup'). The equivalent of those are

window.getElementById

and

window.getElementsByClassName

Google for usage examples.
 
Share this answer
 
If I understand you correctly, you want to know how to get rid of jQuery and get the same functionality without any 3rd-party libraries. This is my recent general advice:
I want to convert below jquery function into javascript, please help me abt that,[^].

As to hiding of HTML elements, there are different ways of doing it, with somewhat different effects. Please see my past answer: How to show and hide div[^].

—SA
 
Share this answer
 
Comments
Karthik_Mahalingam 29-May-16 11:05am    
5ed
Member 11663301 29-May-16 11:26am    
5ed means
Karthik_Mahalingam 30-May-16 0:19am    
5ed means 5 stars ( * * * * * ) [ top right corner of the solution widget]
this solution is convincing for me to give 5 star rating.
Sergey Alexandrovich Kryukov 29-May-16 11:44am    
Thank you, Karthik.
—SA
What I understand is you dont want to use only javascript,

May be what you need...
JavaScript
document.getElementById(id).style.visibility = "hidden";//to hide
document.getElementById(id).style.visibility = "visible";//to display


Please post the question correctly..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900