Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
quick javascript help
Old 10-12-2007, 09:30 AM quick javascript help
Junior Talker

Posts: 3
Trades: 0
I have a field called field@code1 in a form in a XSL page.

i want to use java script to do validation.

the javascript errors if there is a @ in it.

1. is there any way of putitng an @ in javascript
2. is there any other way i can referance the field.

thanks
sama:
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
znay is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-12-2007, 02:36 PM
Elemak's Avatar
$1,000 - $4,999 Monthly

Posts: 164
Trades: 0
You can use document.getElementById("field@code1")

IF the ID of the field is also field@code1 (in addition to the field name, the ID has to be that as well)
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Elemak is offline
Reply With Quote
View Public Profile Visit Elemak's homepage!
 
Reply     « Reply to quick javascript help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09470 seconds with 12 queries