0

I am extending the functionality of a Business Intelligence tool. This is a web based application. Currently attempting to create some type of "form" validation. The strange thing is that this application reuses the same input for every single one of the form inputs. Once the user clicks away from the input html object, some javascript moves the value entered into the input into the text within a div.

Before:

<div>
</div>

Input filled out:

<input type="text" value="this is a test">

Result:

<div>
this is a test>
</div>

Is there any way to create a listener which will validate what is written inside of the div?

5
  • 2
    NO NO NO !!! Before must discovery HTML!!! <input type=text>this is a test</input> instead <input type="text" value="this is a test"> Commented Oct 21, 2013 at 13:44
  • 1
    Why don't you validate the input instead? Commented Oct 21, 2013 at 13:46
  • I may be able to do that. But the page may have 10 divs which are considered "input". And the actual input tag is reused for all of them for some reason... Commented Oct 21, 2013 at 13:50
  • 2
    Why the hell did they used just one input? Commented Oct 21, 2013 at 14:16
  • I have no clue..... their developers always do weird things Commented Oct 21, 2013 at 14:47

1 Answer 1

1

try this

<input type="text" value="this is a test"/>

instead of

<input type=text value=this is a test></input>

hope this helps...

Sign up to request clarification or add additional context in comments.

1 Comment

thanks, I wrote that psudo code real quick. Thanks for the information, but I think that willnot help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.