Reply
.value.length workaround for firefox
Old 11-02-2009, 07:14 PM .value.length workaround for firefox
Junior Talker

Posts: 2
Trades: 0
Code:
if(document.getElementById('id').value.length>=3){}
The element is a text box, and this conditional statement works properly in Safari. Is anyone aware of a different method to extract the number of characters in a text box? This does not work properly in firefox. I would be happy to provide my autosuggest from database PHP/JS code in return.

Thanks,
thestranger
thestranger is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 11-02-2009, 07:55 PM Re: .value.length workaround for firefox
chrishirst's Avatar
Super Moderator

Posts: 22,222
Location: Blackpool. UK
Trades: 0
cancel that. wrong language!!

Are you getting an error?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs

Last edited by chrishirst; 11-02-2009 at 08:01 PM..
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to .value.length workaround for firefox
 

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.10203 seconds with 13 queries