6160 3
how to check if string is null or empty using jQuery or javascript?

Hello, I was trying to check if a string is null or empty using javascript or jquery , just like we do in C#. Need one condition, which can check both the requirements at the same time and calls ajax if value is not null or empty.

...
Type
Question
5971 0
Convert Text to HTML using Javascript
In this article, I have provided working example with code to convert plain text into HTML using Javascript or jQuery.
Type
Article
5946 2
how to format text as a dollar currency using javascript or jquery?

I would like to format the input string in my textbox to dollar currency formatted text, so if I enter 100.00000 in it, output should be

...
Type
Question
5901 1
DataTables breaks on last “Next” or any “Previous” paginate button

I have the following DataTable which calls status_icons() function for replacing 0 & 1 values with icons.

At first results page (on initComplete) I call status_icons() for the replacement and then I make a trigger out of DataTables scope in order to have my function re-executed for next paginated results due to DataTable DOM reconstruction behavior for each pagination.

The error I get is that re-adds the status icons over the current ones when you click on the "Previous" button on any pagination or the numbered pagination boxes.

My function for replacing values with icons

...
Type
Question
5749 0
Easy way to convert HTML to PDF using Javascript
In this article, I have provided sample code with output to convert HTML to PDF using Javascript, using jsPDF library or without using any library.
Type
Article

5494 0
Using Google maps Javascript api in HTML (Show location with Marker)
In this article, I have explained how you can use google maps JavaScript API to use it your HTML web-page with markers and text on click, to use it in contact us page.
Type
Article
5444 2
How to enable JavaScript debugging in visual studio 2019 or 2017

How Can I enable Javascript debugging in Chrome using Visual Studio 2017 or 2019? I have been using Visual Studio 2017, but I am not able to debug Javascript code by placing debug in the Visual Studio Javascript code.

So, how can I achieve it and check line by line output of the Javascript code? I have checked this article ("How to debug in visual studio? ( Tutorial to debug C# code )") but it shows debugging C# code in Visual Studio.

...
Type
Question
5424 3
How to check if string contains substring using jQuery-Javascript?

I am trying to send data to front end, using Ajax call, now I am getting string like

...
Type
Question
5377 2
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
5177 3
How to make Ajax request synchronous in jQuery?

Is there any way to make Ajax request Synchronous in jQuery/javascript?

I am trying to fetch a data from the server while loading the <div> data and depending on that data, i will fetch another query, which can be asynchronous but the first one should be synchronous as data will be parsed after the success of the call.

Code:

...
Type
Question

Page 3 of 11