/    Sign up×
Community /Pin to ProfileBookmark

Javascript Problem

<script type=”text/javascript”>
<!–
function change(s)
{
document.bilgi.sirket[s].enabled.enabled=true;
}
// –>
</script>

<input type=”radio” name=”kargo[0002]” onclick=”change(0002)”>

<form name=”bilgi” action=”toplu_kargo.php” method=”post”>
1<input type=”text” name=”sirket[0001]” size=”32″ maxlength=”32″ disabled><br>
2<input type=”text” name=”sirket[0002]” size=”32″ maxlength=”32″ disabled><br>
3<input type=”text” name=”sirket[0003]” size=”32″ maxlength=”32″ disabled><br>
4<input type=”text” name=”sirket[0004]” size=”32″ maxlength=”32″ disabled><br>
5<input type=”text” name=”sirket[0005]” size=”32″ maxlength=”32″ disabled><br>
</form>

How can i make this code work? There is a problem in enabling text ??

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@pelegk1Oct 23.2003 — name="sirket0001"

second why twice enables property??


document.bilgi.sirket[s].enabled.enabled=true;



???
Copy linkTweet thisAlerts:
@norgauthorOct 23.2003 — I must use it with [] because on the posted page i am taking it as array.

enabled.enabled is copy paste error sorry =))


Have you got any solution for

document.bilgi.sirket[s].enabled=true;
×

Success!

Help @norg 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,
)...