Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

how to remove the column from a java web page

Ads

 
 

Share on Google+Share on Google+

hemanth kumar gajula
how to remove the column from a java web page
1 Answer(s)      6 years ago
Posted in : JSP-Servlet

i have a web page with account#, qtr, year if i want to remove the year column which is a drop down list from my jsp what should i do and what is the process please give a brief view as soon as possible. thank you.

Ads
View Answers

July 28, 2011 at 12:02 PM


<html>

<script type="text/javascript">
function removeColumn(c){
var root = c.parentNode.parentNode;
var allRows = root.getElementsByTagName('tr');
var aCells = c.parentNode.getElementsByTagName('td')
for(var j=0;j<aCells.length;j++){
if(c==aCells[j]){var q=j;break}
}
for(var i=0;i<allRows.length;i++){
allRows[i].removeChild(allRows[i].getElementsByTagName('td')[q]);
}
}
</script>
<body>
<table width="100%" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td> <a href="#" >Account</a></td>
<td><a href="#">QTR</a></td>
<td><a href="#" onclick="removeColumn(this.parentNode)">Year</a></td>
</tr>
<tr>
<td>1111</td>
<td>2121</td>
<td><Select>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
</select>
</td>
</tr>
<tr>
<td>2222</td>
<td>2111</td>
<td><Select>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
</select>
</td>
</tr>
</tbody>
</table>

</body>
</html>

Ads









Related Tutorials/Questions & Answers:
how to remove the column from a java web page
how to remove the column from a java web page  i have a web page with account#, qtr, year if i want to remove the year column which is a drop down list from my jsp what should i do and what is the process please give a brief view
How to remove virtual keypad from apps java
How to remove virtual keypad from apps java  I have an galaxy smart s6830 touch Chinese Mobile (240x320) (myriad java platform) (esmertec jbed) and I need to remove keypad from apps . I have put the following into the jar file
Advertisements
How to remove virtual keypad from apps java
How to remove virtual keypad from apps java  I have an galaxy smart s6830 touch Chinese Mobile (240x320) (myriad java platform) (esmertec jbed) and I need to remove keypad from apps . I have put the following into the jar file
How to remove virtual keypad from apps java
How to remove virtual keypad from apps java  I have an galaxy smart s6830 touch Chinese Mobile (240x320) (myriad java platform) (esmertec jbed) and I need to remove keypad from apps . I have put the following into the jar file
Can I remove jsp web page from the server - JSP-Interview Questions
Can I remove jsp web page from the server  Dear, Please when I write a jsp web page and I dowload it at the server, it will generate .gpa.... The problem when I remove .jsp web page, the program stop working. Please
Mysql Alter Remove Column
and remove the column from existing table. Understand with Example The Tutorial illustrate an example from 'Mysql Alter Remove Column'. To understand this example... to remove column 'city' from table 'employees'. mysql> alter
How to Remove Repeated Characters from the String?
How to Remove Repeated Characters from the String?  Hi, I trying to develop an application which will remove the repeated characters from... the example of how to remove repeated characters from the string. Please visit
How to update table column from the values of Arraylist in java
How to update table column from the values of Arraylist in java  Hii Sir, I have an arraylist containing these values [2, 1, 1, 1, 1, 1, 1... column of database table. plz give me the code of this problem.Thank you Sir
Removing a Column from a JTable
you in how to remove a column from a JTable. For this, have or make  a table...;  In this section, you will learn how to remove a column... that,  this program uses the Remove method for removing the column from
How to Remove audio from video file with FFmpeg?
How to Remove audio from video file with FFmpeg?  I have a video test.mp4 and I want to remove the audion from the video. So, that there is no audion in video. How to remove audio from video file with FFmpeg? thanks   
How to remove specific element from Hashset.
How to remove specific element from Hashset. In this  exmple, you will see how to remove specific element from hashset. The HashSet class provides a method called remove. It removes a elements from set. Code: 
How to remove paragraph from ms word
How to remove paragraph from ms word  Hi! I am using MS Word to edit my text but somehow i get paragraph sign on every line of my text. So, can any one please tell me how to remove paragraph from ms word?   CTRL+SHIFT+8
Neo4j - How to to remove all data from neo4j?
Neo4j - How to to remove all data from neo4j?  Hi, I am learning neo4j. I have created few nodes and links. Now I want to delete all of them. How to delete all nodes, links and properties from a Neo4j database? Thanks  
How to display Jfreechart from servlet in jsp web page at specified location
How to display Jfreechart from servlet in jsp web page at specified... to display the chart in web page. I generated the chart using Jfreechart... in jsp web page . Thank you very much Sir
How to remove all element from Hashset.
How to remove all element from Hashset. HashSet is set type Collection. It supports only unique value. We can not store duplicate value in  it .In this example, you will see the use of clear method of HashSet. It is used to remove
Java Remove a character from string
Java Remove a character from string In this tutorial, you will learn how to remove a character from the string. There are several methods for examining... to remove a particular character from the string. In the given example, we have
Remove Unique Column in Database Table
.  But, what if we want to remove the unique key from the unique column... that it will take a table name and column name from which we want to remove the unique key... Remove Unique Column in Database Table   
JDOM Element Example, How to remove child of an element from xml file in java.
JDOM Element Example, How to remove child of an element from xml file in java. In this tutorial, we will see how to remove child of an element from xml file in java with the help of JDOM library. JDOM is a java toolkit
How to remove glass from the face
How to remove glass from the face By this example you will be able to remove any object from every place but. I have tried to remove a goggle from... Tool (S key) and adjust the setting to remove glass. Remove : Hold Alt key
how to open a web page using proxy in java and handling button event in that web page..?
how to open a web page using proxy in java and handling button event in that web page..?  Sir, what i need is a code which uses proxy address... from an ip address it(web page) gives a note that come after 22hours to vote again
How to export web page to excel using java or jsp or servlets
How to export web page to excel using java or jsp or servlets  Hi I am trying to export web page(jsp page ) to excel using jsp or servlets. I am retrieving records from database and displaying in the jsp page, In this page I
how to add web cam in web page
how to add web cam in web page  how do i embed my webcam in web page. code for embedding web cam in web page
Photoshop Tutorial : How to remove an object from a picture
How to remove an object from a picture       We are going to learn the method to remove an object from a picture. If you want to remove an object, which you don't want to like
how to create web page on jsp?
how to create web page on jsp?  how to create web page on jsp
JDOM Element Example, How to add and remove child from xml file.
JDOM Element Example, How to add and remove child from xml file. In this tutorial, we will see how to add and remove child node in an xml Document tree... are discussing the use of addContent() method. Example also show how to delete
remove comma from string php
remove comma from string php  How to remove the last comma from the string in PHP
Delete row and column from table through java code
will see how to delete row and column from given table through java code. Java code... Delete row and column from table through java code... name and .java extension then compile from command prompt with javac command
remove item from list box using java script - Java Beginners
remove item from list box using java script  remove item from list box using java script  Hi friend, Code to remove list box item using java script : Add or Remove Options in Javascript function addItem
how to remove tags in HTML without functionalities? - Java Beginners
how to remove tags in HTML without functionalities?  hi to all, I create an application for converting html to ppt in java. And in this i convert the text from html to ppt and i able to remove the HTML tags from .html code
Remove duplicate characters from the string
Remove duplicate characters from the string In this tutorial, you will learn how to remove duplicate characters from the string. Java has provide several.... Here we are going to remove duplicate characters from the string
How to change functionlatiy in web page
How to change functionlatiy in web page  i need to change functionality of my web page..i came to know that by using collections it is possible..but i dont know how to use it...is any other way to change functionality of my web