/    Sign up×
Community /Pin to ProfileBookmark

What is going on here (insertHTML and apostophes)

eqname = ‘lalal”lalala’;

cell3.innerHTML = “<input type=text autocomplete=off size=30 name=xEquipment”+(lastRow-1)+” id=oinputString”+(lastRow-1)+” value=””+eqname+”” onkeyup=”lookup(this.value,this.id,’osuggestions’+getinputstringid(this.id),'”+type+”‘)”>”;

alert(cell3.innerHTML);

Alert outputs -> <input type=”text” autocomplete=”off” size=”30″ name=”xEquipment0″ id=”oinputString0″ value=”lalal” lalala”=”” onkeyup=”lookup(this.value,this.id,’osuggestions’+getinputstringid(this.id),’privateoinputString’)”>

What’s with the extra “=”-character after eqname? I jsut can’t figure this out. Help would be much appreciated.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorMar 16.2011 — I see no = sign when I alert the string. Post the whole code or a link to a test page, or detail a little bit.
×

Success!

Help @andx85 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 5.28,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...