/    Sign up×
Community /Pin to ProfileBookmark

Problem in placeing (may be getElementById)

Hello friends

In my form I am using two AJAX functions..

Both are working fine…

Problem is both are displying in one place..I want to display it in different locations…

I used <div id=”txtHintGrade”></div>
<div id=”txtHint”></div>

txtHindGrade for first
document.getElementById(“txtHindGrade”).innerHTML=xmlHttp.responseText;
<span id=”txtHindGrade”></span>

and

txtHint for the second
document.getElementById(“txtHint”).innerHTML=xmlHttp.responseText;
<span id=”txtHint”></span>

Both are displaying in one place where txtHint is given

please help

thanks

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorMay 15.2008 — Confusing. But you have divs and spans which have the same id, which is not correct. [B]id [/B]must be unique on document.

Oce again, detailed please. What is your problem?
Copy linkTweet thisAlerts:
@priyapratheepauthorMay 16.2008 — thanks


my problem is solved.I mistakenly named function names same
×

Success!

Help @priyapratheep spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...