mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

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

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

How to disable a Textarea

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";

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to disable a Textarea

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.

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

How to disable a Textarea

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
Image

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.

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

How to disable a Textarea

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 ?

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

How to disable a Textarea

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to disable a Textarea

If jQuery Mobile has such option/feature - then just set the right attribute with in More Properties.

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

How to disable a Textarea

Hi Max
Yes it's data-role="collapsible-set but data-role is a restricted name.
any suggestions ?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to disable a Textarea

No, but ask on jQuery Mobile forum.

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

How to disable a Textarea

ok Max thanks anyway

Return to “Issues”