Created
January 15, 2021 18:03
-
-
Save satishgumudavelli/9c4527d2760185a4be315b6ef5c24f95 to your computer and use it in GitHub Desktop.
Write html in php.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$html .= <<<EndHTML | |
<script> | |
require(['prototype'], function(){ | |
Event.observe($('carriers_tablerate_condition_name'), 'change', checkConditionName.bind(this)); | |
function checkConditionName(event) | |
{ | |
var conditionNameElement = Event.element(event); | |
if (conditionNameElement && conditionNameElement.id) { | |
$('time_condition').value = '_' + conditionNameElement.value + '/' + Math.random(); | |
} | |
} | |
}); | |
</script> | |
EndHTML; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment