How to remove white spaces from a string in jQuery?

Posted by Prem Tiwari | Updated on | Jquery


Want to remove white spaces from a string in jQuery? You can use the jQuery $. trim() function to remove all the spaces (including non-breaking spaces), newlines, and tabs from the beginning and end of …

How to upload file using jQuery AJAX and PHP?

Posted by Ramesh Singh | Updated on | Ajax Jquery PHP


If you want to upload a file using jQuery AJAX and PHP, then use the following code: You need a script that runs on the server to move the file to the uploads directory. The …