Help matching button tag and replace its onclick
I'd like to select and match the following button code by the buttonid and replace what's in the onclick with my own url.
- <button type="button" tabindex="0" title="" buttonid="CTRL53_11" onclick="return (PictureButton.OnClick(this, event));">My Button</button>
Can you help me match the <button> tag where the buttonid is CTRL53_11 and replace the onclick to something like window.location.href="custom.html"?
I can use something this right? $('button[buttonid="CTRL53_11"]')
I'm not sure how to replace the onclick though.
Thanks