B4J Question How do you hide a jqueryelement button?

B4JExplorer

Active Member
Licensed User
Longtime User
Hi,

I've tried all 3

btn_Save.SetProp( "display", "none" )
btn_Save.SetProp( "hide", "true" )
btn_Save.SetProp( "disabled", "true" )


. The last one disables the button properly. But none of them makes the button invisible.
 

Eumel

Active Member
Licensed User
Longtime User
If it is a WebSocket Project, you can try this.

B4X:
ws.Eval("$('#btnsave').closest('.ui-btn').hide()",Null)
 
Upvote 0

B4JExplorer

Active Member
Licensed User
Longtime User
Eumel, thanks for the suggestion. I haven't tried it yet, but Erel's RunMethod example above, works fine.

Thanks Erel and Eumel.
 
Upvote 0
Top