• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Tutsplanet

Tutsplanet

Free Technical and Blogging Resources

  • Home
  • Web Hosting
  • Programming
  • Plugins
  • Twitter Trends
  • Tools
  • About Us

Snippets List

How to prevent user from typing in text field without disabling the field?

Jan 10, 2017 Editorial Staff Leave a Comment

Share
Tweet
Share

A non-Javascript alternative that can be easily done: You can use the readonly attribute instead of the disabled attribute. It prevents editing the text in the input, but browsers style the input differently

<input readonly type=”text”>


Editorial Staff

Editorial Staff at Tutsplanet is a dedicated team to write various tutorials about subjects like Programming, Technology and Operating Systems.

View all posts by Editorial Staff

  • Laravel date set timezone
  • How to create console command in laravel ?
  • Show a number in two decimal places in PHP
  • PHP str_replace() Function
  • How to delete file from public folder in Laravel?
  • How to run Laravel validation if the field is not empty?
  • How to add custom CSS to head section in Magento 1 ?
  • Append an element with fade in effect in jQuery
  • jQuery: How to fix div when browser scrolls?
  • How to select specific columns in laravel eloquent ORM?
  • How to remove file preview on the right side of Visual Studio Code Editor
  • How to change the default collation of a database?
  • How to get all days and date for a given month?
  • Magento1: Get list of all Categories
  • Display All WordPress Posts in One Page with Template Code
  • Magento 1: How to get the Order Id from Shipping Tracking Id
  • How to get all images of product in Magento 1?
  • Magento – get product id by sku
  • How to remove all CSS classes using jQuery?
  • How to use DB query builder toArray() laravel 5?
  • How to add new methods to a resource controller in Laravel?
  • How to insert multiple rows from a single query using query builder?
  • How to show all PHP errors and warnings?
  • Why you should not use mysql_* functions anymore?
  • What is the difference between ‘git pull’ and ‘git fetch’?
  • Best web based easy to use MySQL database management tools?
  • How to check if an element is hidden in jQuery?
  • How to get current page URL in PHP?
  • jQuery hide() and show()
  • How can I refresh a page with javascript?
  • Auto resizing of columns width Datatable
  • Detect IE5 or IE6 in PHP
  • Count Script Execution Time in PHP
  • How to Get Number of Days Between Two Dates in PHP?
  • How to check if checkbox is checked
  • Advanced Autocomplete with jQuery & Ajax
  • How to prevent user from typing in text field without disabling the field?

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar



Quick Links

  • Top 21 Website Ideas To Make Money Online in 2021
  • A Simple YouTube Video Downloader Script in PHP
  • The 50 Most Useful jQuery Plugins for Frontend Development
  • Replace “\n” with new line characters, using Notepad++
  • Using Third-Party Libraries in Codeigniter
  • Upload Multiple Images and Store in Database using PHP and MySQL.
  • Hierarchical Tree view Category Example in Laravel
  • Laravel Image Intervention Tutorial With Example
  • How to import sql file in MySQL database using PHP?
  • Free VAT Calculator Online



Subscribe

* indicates required



Search Here

Share

   



Hot topics

  • Replace “\n” with new line characters, using Notepad++ 60 views
  • How to enter new line in Microsoft Teams? 53 views
  • A Simple YouTube Video Downloader Script in PHP 38 views
  • Open a URL in a new tab using JavaScript 32 views
  • Add FTP/SFTP in Visual Studio Code 18 views
  • How to use Faker with Laravel ? 16 views
  • How to change PHP version on MAMP – Mac OSX 15 views
  • Solution: windows photo viewer opens each time save a pic file 15 views
  • PHP: Implode () with quotes 14 views
  • Using Third-Party Libraries in Codeigniter 13 views

Categories

  • Design & Development
  • Drupal
  • Facebook
  • General
  • How To
  • ios
  • Javascript
  • Linux
  • Magento
  • Marketing
  • News
  • PHP
  • Plugins
  • Programming
  • Snippets List
  • Social Media
  • Softwares
  • Themes
  • Tips
  • Wordpress
  • YouTube























Copyright © 2022 · Planet on Genesis Framework · Powered By BunnyCDN . Network wallpapernoon.com