Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

check change event in jquery

<div class="form-group">
    <label class="w-20" id="loan_no_label"><?= "<font class='red'> * </font>" . __('loan-number') ?></label>
	<input class="w-65 form-control" id="loan_no" required type="text" name="loan_no" />
</div>

$('#is_all_loan').on('click', function() {

   var checked = $(this);
   if (checked.is(':checked')) {
     $('#loan_no_label').html('<?= __('loan-number'); ?>');
     $('#loan_no').attr('required', false); 

   } else {
     $('#loan_no_label').html("<font class='red'> * </font>貸款編號");
     $('#loan_no').attr('required', true); 
   }
 });
Comment

value change event jquery

$("#input").change(function(){
  alert("The text has been changed.");
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: what is the use of angularjs 
Javascript :: javascript wait for multiple promises 
Javascript :: debug react vscode 
Javascript :: string interpolation javascript 
Javascript :: factorial of number js 
Javascript :: javascript compare sets 
Javascript :: video preview javascript 
Javascript :: run cypress 
Javascript :: replace comma by new line in js 
Javascript :: javascript display 2 number after comma 
Javascript :: javascript check if json file is empty 
Javascript :: javascript querySelectorAll id ends with 
Javascript :: sample google map api key for testing 
Javascript :: react how to create range 
Javascript :: remove div by class name javascript 
Javascript :: postman test check response status 
Javascript :: fs.writefilesync in nodejs 
Javascript :: javascript parse json 
Javascript :: clear whitespace from object javascript 
Javascript :: open a particular slide on click button in owl carousel 
Javascript :: find lowest number in array js 
Javascript :: javascript error discord 
Javascript :: jquery get id 
Javascript :: where to place async in const function 
Javascript :: javascript insert before 
Javascript :: React does not recognize the `activeClassName` prop on a DOM element 
Javascript :: lodash deep compare two objects 
Javascript :: sequelize delete item 
Javascript :: when does localstorage get cleared 
Javascript :: jquery on ready 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =