I have a page with a p tag and div element, the divis element is set with the display: this is not the case at the beginning , I just want to display the various devices shown below body tags on the click of P tag but I got stuck in the different ID of the division, please help me with this situation. Below is my code i thanks
& lt; Script & gt; Function toggle (id) // Here is a function that receives various IDs of div {var element = document.getElementById (ID); {if (element [i] .style.display == "none") for {i = 1; i & lt; 3; i ++} {element [i] .style.display = "block"; } And {element [i] .style.display = "none"}}} & lt; / Script & gt; & Lt; Body & gt; & Lt; P onclick = "toggle ('div1')" & gt; Sentence1 & lt; / P & gt; & Lt; P onclick = "toggle ('div2')" & gt; Sentence 2 & lt; / P & gt; & Lt; Div id = "div1" name = "name1" style = "display: none; width: 400px; height: 300px; border: 1px solid black; background color: yellow;" Id = "div1" & gt; Barun component & lt; / Div & gt; & Lt; Div id = "div2" style = "display: none; width: 400px; height: 300px; range: 1px solid black; background color: black;" id = "DIV2" & gt; Bhoopi & lt; / Div & gt; & Lt; / Body & gt; You only have one div, so you do not need a loop . Just use
function toggle (id) // Here is a function that receives different IDs of div {var element = document.getElementById (id); If (element.style.display == "none") {element.style.display = "block"; } And {element.style.display = "none"}}
Popular posts from this blog
Please help me about this question: Look for functions ($ userpno) } {Echo $ userpno; $ This-> query = "SELECT task.employee_id, task.user_id, task.service_id, service.name AS servicename, service.description AS servicedescription, employee.name as employineame, employee.pic_path employment, employee.pic_path from work Work.user_id = '$ userpno' Join the INNER employee. Pno = task.employee_id Join INNER user user.pno = task.user_id service.service_id = task.service_id "INNER service; } query works perfectly without: WHERE task.user_id = '$ userpno' my Also try this method: WHERE task.user_id = $ userpno but it does not work. Error: Warning: mysqli_fetch_array () parameter 1 is expected to be mysqli_result, given in Boolean C: \ wamp \ www \ admin \ classes \ Task Php on line 22 Please tell me where I say where is it. Try: $ this-> query = "SELECT Task.employee_id, task.user_id, task.service_id, service.name AS s...
I am trying to create Java web framework (and learning), and on the basis of 'Code Generator In the process of making the material view of the database in the process of development, I stumbled into a difficulty, which I do not know how to solve it. First of all, I want the following index.jsp : & lt; Body & gt; Use all pages to be created. & Lt;% @ include file = "header.jsp"% & gt; & Lt; Hours / & gt; & Lt;% @ included file = "body.jsp"%> & Lt; Hours / & gt; & Lt;% @ include file = "footer.jsp"% & gt; & Lt; / Body & gt; And, in body.jsp , I should have it like this: & lt; Jsp: include page = "$ {Application_modul}"%> Where application_modul is an attribute defined in its controller: request.setAttribute ("application_modul", "USER_ACCOUNT \\ ' View_user_account.jsp "); This file can be found properly, but the processed JSP does ...
I am working through an advanced search query where users select the checkbox based on multiple criteria. I am starting because I am hoping that I will know whether I am on the right path. I know that the query is quite messy Edit: I realized that there are two questions to be needed, so I have strictly modified a question question table data tables ss_users user_id FIRST_NAME LAST_NAME admin_level user_approved 1 Nick Jones 0 1 2 Johnny Rocket 0 1 table ss_user_profile_status user_id photo_uploaded 1 1 2 1 table ss_user_photos selected user_id file name photo_id 1 1 photo_1 .jpg 1 2 2 photo_2.jpg 0 3 2 photo_2.jpg 1 table ss_general user_id city state zip neighborhood 1 Baltimore maryland 00125 hamsterdam 2 Lekland My 11542 treemont table ss_languages user_id French German Italian Spanish 1 0 1 0 1 2 0 1 1 Table ss_experience Waldorf Kumon homeschooling user_id 1 0 1 0 2 0 0 1 My current The result is that all users, which should not be the case: ... Select ss_use...
Comments
Post a Comment