1024 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
997 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
955 2
how can i validate email using javascript?

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

...
Type
Question
954 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
954 1
How to implement validation for input type file using jQuery or javascript?

Hello, I have a HTML form inside which there is <input type="file" /> field, and now before posting form to the server side, I need to validate/check if file field is empty or not, I want user to upload atleast one image file in this field, so how I can implement validation message for <input type ="file" /> field in the form using jQuery or javascript code?

Sample HTML Form

...
Type
Question

946 2
How to get difference between two dates in javascript?

I would like to get Difference between two dates using javascript or jQuery in simple way.

How can I do that, for example

...
Type
Question
903 2
How to Parse JSON in javascript?

How can I parse JSON string in javascript?

The response is something like

...
Type
Question
903 1
What's the difference between let and var in JavaScript?

Hello, as I am not very well versed with javascript, I would like to know the difference between let and var keyword of javascript?(With example if possible)

Or Any reference link with proper details will also work, thanks

...
Type
Question
897 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
885 2
not able to access iframe contents using jquery or javascript

I was trying to manipulate HTML inside iframe using jquery-javascript, I am trying something like this

...
Type
Question

Page 5 of 7