How to disable a Textarea
Max
How do i make a textarea read-only in Tiggzi.
I tried $("#mytextarea").attr("disabled", "disabled"); but wont work
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Max
How do i make a textarea read-only in Tiggzi.
I tried $("#mytextarea").attr("disabled", "disabled"); but wont work
ok scrub last ques.
Got it working by clicking more properties button on the textarea and adding the following.
Property name = disabled
Property value = disabled.
also this works if useful to anyone for feedback button
window.location.href = "mailto:a href="mailto:address@somewhere.org" rel="nofollow"address@somewhere.org/a";
code
$("#mytextarea").attr("disabled", "disabled");
/code
Is the right code but not the right selector.Whenever you want to select an element in your app you should first view its real id or dsid (generated by TiggzI) in source and then use the correct selector. That's why we have Tiggr(id) function:
http://help.gotiggr.com/documentation...
Before setting an attribute test to make sure you have selected the right element.
But, using More Properties feature is also the right approach.
ok Max thanks for the tip.
Can I ask a quick ques. probably for another section.
but i was was wanting to use a more square collapsible block with sections.
here is an example
It has more tighter sections.If I insert a collapsible blocks within collapsible blocks in in Tiggzi then it is not like above and also cannot get the list dividers.
Is there a way I can do this using the new more properties option.
I can code this outside of Tiggzi but I need to perform a Rest service on the blocks so I like to be able to do using Tiggzi which is on main reason why I signed up to Tiggzi as it is easy to use Rest Services.
This is how how I built the block. so basically I need to change property to collapsible-set. Like below.
div
div
also can i add dividers in Tiggzi using
li
Divider
/li
i understand data-role is reserved but could I do it another way to change the property of the component ?
I don't know what happened above. The format got messed up.
Obviously I cant insert HTML here. But now I cant edit it for some reason.
If jQuery Mobile has such option/feature - then just set the right attribute with in More Properties.
Hi Max
Yes it's data-role="collapsible-set but data-role is a restricted name.
any suggestions ?
No, but ask on jQuery Mobile forum.
ok Max thanks anyway