click event

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    4 posts
    Member since:
    Sep 2012

    Posted 08 Jun 2015 Link to this post


    How do I pass a value from the button .content

                     .HtmlAttributes(new { type = "button" })
                           .Events(ev => ev.Click("onClickPol")))
        function onClickPol(e) {
           //This dos not work, I want to retrieve the name, content of that button what n this case is 135
            var xContent  = $(".k-button").attr("textContent")


  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2126 posts

    Posted 09 Jun 2015 Link to this post

    Hello Andrew,

    If you would like to access the text content of the button, you could directly use jQuery.


    Dimiter Madjarov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top