Change value of input with jQuery

I have multiple input‘s which have different data-id‘s. If the input is clicked, I want to change the value of that input. I tried this but it didn’t work, I’ve searched but couldn’t find a solution. <script> $(‘[data-id]’).click(function() { $(this).attr(‘data-id’).parent().value(“changed value successfully!”); //I tried this one below as well //$(this).attr(‘data-id’).parent().input.value(“changed value successfully!”); }); </script> <div>…

How to get day of the week based on date in another field in jQuery

Issue I have two text field in a model-form. First is text field showing date and second is a normal text field. I’m using jquery datepicker for dates Please see my code blow Code Html: <form> <input type=”text” name=”start_day” value=”<?php echo $start_day; ?>” class=”start_day” tabindex=”0″ /> <input type=”text” name=”dlvry_day” value=”<?php echo $dlvry_day; ?>” class=”dlvry_day” >…