Click here to Skip to main content
14,457,299 members

JavaScript

 
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan3-Apr-19 5:47
communityengineerRichard MacCutchan3-Apr-19 5:47 
QuestionChanging a font color Breaks my script??? Pin
Member 1420217628-Mar-19 10:04
MemberMember 1420217628-Mar-19 10:04 
AnswerRe: Changing a font color Breaks my script??? Pin
Richard MacCutchan28-Mar-19 23:42
communityengineerRichard MacCutchan28-Mar-19 23:42 
AnswerRe: Changing a font color Breaks my script??? Pin
Richard MacCutchan29-Mar-19 6:56
communityengineerRichard MacCutchan29-Mar-19 6:56 
QuestionJavascripts documentation engine and API Pin
Yuri_Cherkasov26-Mar-19 3:55
MemberYuri_Cherkasov26-Mar-19 3:55 
QuestionRegular Expression for min of 4 and max 40 characters in TypeScript Pin
simpledeveloper12-Mar-19 8:39
Membersimpledeveloper12-Mar-19 8:39 
AnswerRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan12-Mar-19 8:54
communityengineerRichard MacCutchan12-Mar-19 8:54 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper12-Mar-19 9:22
Membersimpledeveloper12-Mar-19 9:22 
Can I use two regular expressions on one field in html?

Some how I could able to put the below attribute in the input text, it shows red mark when the number of characters are less than 4 but it doesn't show me the message:
pattern=".{4,40}"

Any idea would be very very helpful, thanks

What I have to achieve is to display the message smartly depending upon the failing regex, there are two checks, 1 is invalid characters and when the focus is out of textbox, if length is less than 4 characters, then, it should display message saying, minimum length is 4 characters.
Currently its working for invalid characters as below:
<div class="field-validation-error" *ngIf="pinCodeInput.errors !== null && pinCodeInput.errors.regexValidator">
    {{ 'OnlineRegistrationView.Validator.PinCodeInvalidCharacters' | Translate }}
</div>


modified 12-Mar-19 14:37pm.

GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan12-Mar-19 9:38
communityengineerRichard MacCutchan12-Mar-19 9:38 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper12-Mar-19 9:49
Membersimpledeveloper12-Mar-19 9:49 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan12-Mar-19 10:51
communityengineerRichard MacCutchan12-Mar-19 10:51 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper13-Mar-19 7:29
Membersimpledeveloper13-Mar-19 7:29 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan13-Mar-19 7:38
communityengineerRichard MacCutchan13-Mar-19 7:38 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper13-Mar-19 13:25
Membersimpledeveloper13-Mar-19 13:25 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan13-Mar-19 23:16
communityengineerRichard MacCutchan13-Mar-19 23:16 
Questionhow can use php code in java? Pin
Member 1417801711-Mar-19 1:45
MemberMember 1417801711-Mar-19 1:45 
AnswerRe: how can use php code in java? Pin
Nathan Minier11-Mar-19 3:51
professionalNathan Minier11-Mar-19 3:51 
QuestionRedirecting to the URL after Submit Pin
simpledeveloper6-Mar-19 13:37
Membersimpledeveloper6-Mar-19 13:37 
AnswerRe: Redirecting to the URL after Submit Pin
Nathan Minier7-Mar-19 2:39
professionalNathan Minier7-Mar-19 2:39 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper7-Mar-19 9:29
Membersimpledeveloper7-Mar-19 9:29 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper7-Mar-19 11:52
Membersimpledeveloper7-Mar-19 11:52 
GeneralRe: Redirecting to the URL after Submit Pin
Nathan Minier11-Mar-19 2:15
professionalNathan Minier11-Mar-19 2:15 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper12-Mar-19 7:32
Membersimpledeveloper12-Mar-19 7:32 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper13-Mar-19 7:24
Membersimpledeveloper13-Mar-19 7:24 
QuestionToggling two Radio buttons depending upon enum values in Angular 2.0 Pin
simpledeveloper27-Feb-19 14:38
Membersimpledeveloper27-Feb-19 14:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.