Search found 2 matches
- Sun Aug 08, 2010 12:50 am
- Forum: Javascript
- Topic: javascript form validation
- Replies: 3
- Views: 930
Re: javascript form validation
You could do it by looking into all characters of the text to validate by charAt() method of string object. Check if it is a digit or a hyphen ("-"). Remember that Javascript does not have a char data type; charAt() returns a string of length 1. You could also do it by using indexOf() and ...
- Sun Aug 08, 2010 12:30 am
- Forum: Javascript
- Topic: AJAX callback functions
- Replies: 14
- Views: 2015
Re: AJAX callback functions
A bit hackish but... <select name="publication" id="pubitemlist" onChange="this.parentNode.submit();"> should work. This is the same as what you already tried but 'form' is now 'parentNode'. Note that if you put the select inside of a div (or something similar) you woul...