/    Sign up×
Community /Pin to ProfileBookmark

acces bidimensional array data form from JavaScript

Hi there!!! I want to access a bidimensional array in a form from javaScript, but I do not know how to do that. this is the form

[code]

<td><input type=”text” name=”tn[‘.$elem[‘id’].’][]” value=”‘.$elem[‘name’].'” /> </td>

[/code]

As you can see, it is PHP code that generates several input form. What I want to get is the array “tn” in JavaScript, because I need to check that the text is not empty

thanks a lot!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @hebrerillo 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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