my mistake in writing the sample code here...
the function is
function removeProducts( ){
alert(qArray);
}
User Profile
Collapse
-
value not being stored in the array variable
Hi,
I am using a global variable qArray in js file.I have include this file in a jsp file.
Now I am using a list<String> to populate the qArray.
On click of a button on the jsp page I want to access the qArray but i am not able to do so.
below is the code snippet:
...Code:// in abc.js qArray=new Array(); function removeProducts(){ alert(quoteProductsArray[0]); } -
I am sorry, I did not get you.
What do you mean by [code] tags?
could you please explain.Leave a comment:
-
Code:function deleteSelectedRow() { var tbl= document.getElementById("tblAttrValues") tbl.deleteRow(this.parentNode.parentNode.rowIndex); }Leave a comment:
-
-
how to dynamically delete a row
Hi,
i am dyanamically creating rows.In which I have two columns. First column contains text box while second one contains a button. On click of this button I want to delete that row.
The problem is my code I always deletes the first row.
below is the code snipet:
...Code:function apendValues() { listAttrValues=true ; var tbl = document.getElementById('tblAttrValues'); var lastRow = tbl.rows.length; -
missing ) after argument list
Hi,
i have to create table's rows dynamically.
I am using bellow code snipet...
...Code:function copySelectedAttr() { var attrValue= document.getElementById('fromEntityAttrBox').options[document.getElementById('fromEntityAttrBox').selectedIndex].text; var attrtype=document.getElementById('fromEntityAttrBox').value; var newRow = document.getElementById("tlbEntityAttr").insertRow(rowIndex); -
i have found the cause of issue.
Actually on second div I have two input type buttons. The value of the buttons is taking more space than of div.
is thre any way of displaying button's value in two lines?Leave a comment:
-
i am copying the sample code here
...Code:<div id="manageCEAttribute" class="manageCE"style="display:none;top: -610px;"> <table>some code goes here <input type="button" name="deleteCE" onclick"delete"> </table> <div id="deleteCEAttribute" class="deleteCE" style="display:none;"> some codeLeave a comment:
-
inner div's space is being shown
Hi,
I am using two divs like.
when I click on button b1,i have to display div2 parallel to div d1. I have written style for that. Its working fine for that.Code:<div id="d1"> <button b1> <button b2> <div id="d2"> <div> <div>
The problem is div d1 too is showing empty space of size div d2.
please help
No activity results to display
Show More
Leave a comment: