473,761 Members | 9,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to change textfield value on validation time?

6 New Member
i want to change text field value
document.getEle mentById('id'). innerHTML.value ="email is invalide....";


why its not working ?
and any other idea for changing value on validation time without page reload..
Sep 4 '12 #1
4 2020
Dormilich
8,658 Recognized Expert Moderator Expert
it’s not working because
- innerHTML is a String and Strings do not have a value property
- a text field does not have an innerHTML property
Sep 4 '12 #2
Nitya Kumar
6 New Member
Dromilich

thanks
but any other suggestion pls
Sep 4 '12 #3
Dormilich
8,658 Recognized Expert Moderator Expert
see https://developer.mozilla.org/en-US/...MLInputElement for a full list of supported properties.
Sep 4 '12 #4
iam_clint
1,208 Recognized Expert Top Contributor
.innerHTML.valu e isn't valid its just .value
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('id').value="ema il is invalide....";
  2.  
Sep 22 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
17305
by: Matt Herson | last post by:
I have been trying to find a way to use JavaScript to change the value of a hidden field on submit. I am already invoking a JavaScript to handle the validation on submit. The reason I need to change this field is some of the forms have two buttons on them, each needs to process the form differently. If I can change the value of the hidden field dynamically it will solve my issue as I can run each against a diffent cgi. Currently my...
10
2585
by: Harry Haller | last post by:
How can I change the value in a css class? For instance, with I.E., I want to change the value in the class span.arr from middle to 0.2em. The value of middle is OK for most other browsers. I expected the code below to work but I.E. does not like it. What should I be doing?
2
6852
by: Rick | last post by:
I have an XML document that is generated from Infopath, I need to change the value of a namespace that is defined in a node in the form: <xsf:xDocumentClass "xmlns:my=valuehere">. when i navigate to the namespace value it is read only and cannot be changed. Can anyone tell me how to change this value? My Code: Dim sSingleNode As XmlNode = objDoc.SelectSingleNode("//xsf:Node", NamespaceManager)
0
1255
by: josemario.hernandez | last post by:
Hi, I'm having a issue trying to change the value of a session variable. It seems like I just can set my session variable one time in the sessión. For example if I write: Session("Variable") = "1" in a page, and Session("Variable") = "2" in second one. The session variable keep holding the value of the first asignation. It's really weard, because it works good using our internal servers, but not in our external production server...
0
1820
by: zhuang | last post by:
Hi, Adding combobox to datagrid has been posted many times. I have a datagrid which has multiple combobox columns and normal textbox columns. But how could I change other combo box values at the same row when user change the value of one of the combo box. The textbox value in the same row could be changed by modifying the
2
1435
by: juicy | last post by:
I want to do validation on a textfield value key in by user, but I do not have idea on what method I can use. Is it possible to do it on 'onblur' event? Please give some ideas or useful links about this. Thanks.
5
2969
by: Rex | last post by:
Hi, I want to change a value in one table depending on the value(s) in another table. I am trying to achieve this in a form. to elaborate I have a many-to-many relationship between tables Forms and Family and the associate table is called Forms_Family. Forms_Family have fields "dateSent" and "dateReceived". The Family table has a field called
8
10788
dmjpro
by: dmjpro | last post by:
i want to change the default connection time-out value. which is by default 5 minutes. i want to change this value. actually this value is set against a HTTP-HEADER. i just want to know that header name. then i will set this value in my html page .... using META tag with HTTP-EQUIV and CONTENT value.
1
3457
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
Hi all, From my DATABASE i get Dataset to my GRIDVIEW. On run time I want to change the value of a cell. For example: Instead of "0" i want to write "N/A". let's make it clear - I don't want to update the value in the DB just change the specific value of the cell that the user will see on the web. Hope I made my self clear.
0
9554
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9988
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.