Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By iacsvrn
#828605
Hello.

If I`m wirte to textarea some, and after two or three steps come to in field, I can edit, but can`t disable to delete text and enable only add it.

How I can create something like a textarea field where I can correspond with someone, but we can`t delete what we`ve already written there.
By marceloayllon
#830104
Hello iacsvrn,

You should use the getControl() function, in order to select the Dynaform control inner HTML element, and the proper way to disable it is using prop().

So, your code should look like this:

Code: Select all
function checkComplianceFor() { 
  if( $('#complianceType').getValue() == 0 ){ 
 	 $("#renewalFrequency").getControl().prop('disabled', true);
  } 
}

$('#complianceType').setOnchange(checkComplianceFor);
I hope you'll find this example useful.

Regards,

A 1xBet clone script is a customizable software so[…]

A Bustabit clone script is a pre-made software sol[…]

Are you looking for ways to pay someone to write m[…]

BC.Game Clone

BC.game clone is a replica of the original BC.game[…]