•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,682 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,188 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 445 | Replies: 1 | Solved
![]() |
•
•
Join Date: Feb 2007
Posts: 55
Reputation:
Rep Power: 2
Solved Threads: 0
Hello, whenever I try to call this function, web developer plugin for firefox gives me a message that says: "Error: addRow is not defined
Source File: http://localhost/xampp/Aptana/index.php
Line: 1"
Here is my code:
Source File: http://localhost/xampp/Aptana/index.php
Line: 1"
Here is my code:
<script type="text/javascript">
var k = 7;
function addRow()
{
var rowItem = document.createElement('input');
newRow.setAttribute('type', 'text');
newRow.setAttribute('name', 'item' + k);
document.getElementById('myDiv').appendChild(rowItem);
var rowPart = document.createElement('input');
newRow.setAttribute('type', 'text');
newRow.setAttribute('name', 'part' + k);
document.getElementById('myDiv').appendChild(rowPart);
k++;
}
</script>
<form>
<input type="button" value="Add a Row" onclick="addRow()" />
</form> My Website <-- check out my site!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Similar Threads
- Function is undefined (JavaScript / DHTML / AJAX)
- Image Resize Function Error (PHP)
- Linker Error>Undefined reference error to xyz (C++)
- function declaration in MatLab (Legacy and Other Languages)
- WriteFile() function in printf() freezes (C)
- undefined reference errors when using C++ Sockets Library (C++)
- Print_Zero Function (C)
- object undefined instead of string literal (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Help please
- Next Thread: aligning dynamically created element


Linear Mode