AngularJS supports .prop() jQuery functionality. Here in below examples we can see how to set and remove property  of an element.

Steps to read attribute value of an element :

  1. Get angular element of html element
  2. Use .prop('property name') method to read the property value
var myEl = angular.element( document.querySelector( '#inputID' ) );
alert(myEl.prop('checked'));

Steps to set attribute value of an element :

  1. Get angular element
  2. Use .prop('property name', 'property value') method to set the property value
var myEl = angular.element( document.querySelector( '#inputID' ) );
myEl.prop('checked',true);

12 comments:


  1. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. I will visit your blog regularly for Some latest post.
    real estate agencies

    ReplyDelete
  2. To the question to ask here is the nature of these services and amenities and whether they are well maintained.Visit This Link

    ReplyDelete
  3. This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine. types of property insurance

    ReplyDelete
  4. That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more. MyLife

    ReplyDelete
  5. Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. Insurance Wooster

    ReplyDelete
  6. I read that Post and got it fine and informative. Please share more like that... Bukit 828 Condo

    ReplyDelete
  7. Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. The Hyde Condo Woh Hup

    ReplyDelete
  8. Your website is really cool and this is a great inspiring article. Mayfair Modern Condo

    ReplyDelete
  9. The coding are great. Will come back for more

    Mayfair Modern

    ReplyDelete
  10. Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information.. https://www.valsqld.com.au/

    ReplyDelete

Blogroll

Follow this blog by Email

Popular Posts