/    Sign up×
Community /Pin to ProfileBookmark

chk box same name with two different values

Hi

I have listed out files & folder names each under a check box with same name “ff”. but the value of each check box differs
either by F/D. ie if it is for a file its values starts from F & D otherwise.

I want the users to select only files (chk with value starting from “F”). How can I do this.

Also can any one give me a regular expression for a name starting with “F” only???

shara

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 29.2003 — Add the attribute [COLOR=green]disabled="disabled"[/COLOR] to all folder checkboxes.
Copy linkTweet thisAlerts:
@lilluAug 30.2003 — Hi,

re.match(/^F/);

Well, 're' is the variable used here and in this case a match must occur at the beginning of the string (see the ^ symbol)and start with an F.

I think JavaScript regular expressions are case-sensitive so it will not accept the letter f even if it occurs at the beginning.

HTH,

Lillu
×

Success!

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