Dynamically change the properties of a button in the header?
Hi,
Im relatively new to JQM so please forgive any stupid questions I might ask! This is a page from my site. I want to programatically change the right button to pass an argument to the javascript function editCustomer().
how could I do this?
thanks
- <div data-role="page" id="page-customerDetails">
- <div data-role="header" data-position="fixed">
- <h1>Customer Details</h1>
- <a href="#" onclick="history.go(-1);" data-transition="slidedown" data-icon="arrow-l">Back</a>
- <a href='#' onClick='editCustomer();' data-icon='edit' class='ui-btn-right' data-transition='slide'>Edit</a>
- </div>
- <div data-role="content" id="content-customerDetails">
- </div>
- </div>