WEBTRICKSHOME FORUM

Jiwan Thapa

13 Aug, 2017

How To Display Uploaded Image In Html Using Javascript ?

Displaying image in HTML form field on file upload is very easy with the use of javascript. Let's add a little more effect to make it look more attractive. Hide file upload button from HTML page and replace it with a text or icon link If you have a look at most of the social platforms, they have one thing in common related to file upload and that's the file or image upload button which is not present in the form and a plain text or icon link does the work. It helps us ge... Read more »

2 Answer       262615 Views

Anonymous

07 Jul, 2017

How To Autocomplete A Search From Database In Laravel With Ajax And Javascript ?

Writing a script to autocomplete search field is quite easy in php. But, when you are working with laravel, you'll need a method defined in a controller along with a route for the same method. Assuming that, you have already got your database populated, we're going to move on from that point. Search Form The basic HTML element you'll need in order to build a search autocomplete functionality would be a search form. Since, we are autocomplete it without the search query s... Read more »

1 Answer       8263 Views

Anonymous

22 Jul, 2017

How To Display Error Message In Html Form With Javascript Without Using Alert?

Using javascript validation is one of the most appealing part in web development where you can display errors messages to users in case a form doesn't contain required field data. Let's add a form first before working on the validation part. <form name="myForm" method="post" onsubmit="return validateForm()"> <div class="form-group"> <label>Your Name</label> <span id="error-name"></span> <input type="text" name="your-name" class="form... Read more »

1 Answer       64934 Views

Showing 31 to 33 of 33 results