Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass table object.. to javascript function 1

Status
Not open for further replies.

jagi

Programmer
Mar 13, 2005
48
US
Hi,

I have a table shown below in a jsp page, I need that to be passed to a javascript function in a .js file included in the header.

I tried as shown below(onmouseover) but could not get the object to the javascript function.

any ideas??
thanks

Code:
<form>....

<input type="submit" name="Save Changes" value="Save Changes" onmouseover="return verify2(this.form.elements['listtable'])" />
.....

<table name="listtable" id="list" width="85%" border="1">
.....
 
Code:
<input type="submit" name="Save Changes" value="Save Changes" onmouseover="return verify2(document.getElementById('list'));" />

*cLFlaVA
----------------------------
[tt]a frickin' twelve-gauge, what do you think?[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
thanks cLFlaVA

its working...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top