772 1
How to remove square brackets from string using javascript?

Hello, I am working a javascript function, in which I want to remove square brackets from string suppose if string it "[test]", then after removing square brackets I should get "test" only.

How can I do this using Javascript and regex, or without regex?

...
Type
Question
Javascript regex remove square brackets from string
761 3
Datetime Format Regex (MM/dd/yyyy) Javascript

I want to validate the date format on every keypress/keyup that the user's typed.

I've researched for what i'm trying to achieve. And I've found the solution here:

https://stackoverflow.com/questions/36009414/regex-to-validate-date-yyyy-mm-dd-while-typing-on-keyup 

(i was referring to @bobble bubble's answered)

but the format was YYYY-mm-dd. So, I tried to reverse to the format i was looking for to (MM/dd/yyyy).

But i cant get throught with validating every press that the user's typed. What happend was its validate as whole(regex) not one by one.

I also read his explanation about non-capturing group. But still, i can't get it.

 

Happy Coding!

...
Type
Question
Javascript Regex
756 0
Word count using javascript
This small snippet of code, help you create Word count tool using JavaScript for creating an abstract guideline tool
Type
Article
Javascript word-count Word count Abstract Research Thesis
730 1
how to open new tab and insert content in it using javascript?

How can I open a new tab using javascript or jquery and insert new dynamic content in it? Bypassing the pop-up issue also, as I need to show a .pdf file in new window, but you can show me the code of opening and showing HTML in it, I will handle the pdf part.

Thanks

...
Type
Question
javascript jquery open-new-tab html
724 2
how to loop on JSON result & show it to user using jquery?

I am getting JSON result from my C# MVC controller into front end using Ajax call

...
Type
Question
jQuery Ajax Loop-JSON-data

714 2
what's the difference between javascript substr and substring?

What's the difference between the javascript substr and substring, which is better to use and when?

...
Type
Question
javascript javascript substring javascript substr
706 2
How to generate random string using javascript?

Hi, I would like to generate the random string using javascript? How can I achieve it?

Any length of string would work but if possible I would like to have a random string of 6 characters.

...
Type
Question
javascript random string generation
704 2
how can i validate email using javascript?

I would like to know how can I validate email using javascript-jquery?

...
Type
Question
javascript jquery email-validation
695 1
phone number validation in jQuery-javascript?

 How can i validate phone number using jquery-javascript? Suppose, i want to validate phone number for this textbox

...
Type
Question
jquery javascript phone-number validation
683 3
How to select specific div or Form which does not have specific class?

I want to select an HTML element (form) which does not have a specific class ('Ajax_Stop'), so that I can implement a jQuery function on that, basically when submitting a form I want to check if a form or div doesn't have that specific class using jQuery-javascript, & run a function if it doesn't have that CSS class.

How to do it using jQuery or javascript?

...
Type
Question
jQuery javascript select if not have specific class

Page 4 of 6