I want to change my button's text value by finding that button by its id. i have one variable buttionid='3' and trying below code:
$("#slips :button[id=buttionid]").html('mytext'); // it is not working
however below code is working:
$("#slips :button[id='3']").html('mytext');
I need to find button with its id but id is provided by user so search could be dynamic.
Use case is:
I have one input tag form there i am fetching inputs like (3,10)
so I want to assign value as '10' to button with id='3'.
I hope my question is clear.