• Intraxtech Inc
  • NEWBIE
  • 25 Points
  • Member since 2016
  • IntraxTech

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have a custom button on detail page of account object whose behaviour is "Execute Javascript" and content source is "onclick JavaScript". My query is how can i disable the button upon click on it.
I have tried with below code but no luck
{!REQUIRESCRIPT("https://code.jquery.com/jquery-3.0.0.min.js")}
$(this).addClass( 'btnDisabled' );

Also I tried with the prop, and attr methods instead of addClass. does any one has got same error!!!

Thanks and Regards,
Sai Krishna Tavva.
I have a custom button on detail page of account object whose behaviour is "Execute Javascript" and content source is "onclick JavaScript". My query is how can i disable the button upon click on it.
I have tried with below code but no luck
{!REQUIRESCRIPT("https://code.jquery.com/jquery-3.0.0.min.js")}
$(this).addClass( 'btnDisabled' );

Also I tried with the prop, and attr methods instead of addClass. does any one has got same error!!!

Thanks and Regards,
Sai Krishna Tavva.