Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you disable or enable a form element?



How do you disable or enable a form element?..

Answer / Abhishek Gupta

You can use jQuery's prop() function to disable or enable a form element. For example: $('input-id').prop('disabled', true) to disable, and $('input-id').prop('disabled', false) to enable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

How to select element having a particular class (".selected")?

1 Answers  


What is the difference between jquery.size() and jquery.length?

1 Answers  


What is cdn and how jquery is related to it?

1 Answers  


What is the difference between event.PreventDefault and "return false"?

1 Answers  


What are the the two types of cdns?

1 Answers  


What is difference between $(this) and ‘this’ in jquery?

1 Answers  


How can images be made to appear scrolling one over another?

1 Answers  


Explain jquery filter?

1 Answers  


How to include jQuery in ASP.Net project?

1 Answers  


You get "jquery is not defined" or "$ is not defined" error. What could be the reason?

1 Answers  


Define width() vs css('width')?

1 Answers  


What are the slow selectors in jquery? : jquery mobile

1 Answers  


Categories