Widget:InsertPathToAddForm: Difference between revisions
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
| Line 1: | Line 1: | ||
<a id="insertAnchor"><!--{$path}--></a> | <a id="insertAnchor"><!--{$path}--></a> | ||
<script> | <script> | ||
jQuery(document).ready(function(){ | |||
jQuery('#insertAnchor').click(function() { | |||
var selection = $(this).text().trim(); | var selection = $(this).text().trim(); | ||
jQuery('#<!--{$destinationId}-->').val(selection); | |||
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
Revision as of 11:51, 20 April 2018
<a id="insertAnchor"></a> <script> jQuery(document).ready(function(){
jQuery('#insertAnchor').click(function() {
var selection = $(this).text().trim();
jQuery('#').val(selection);
});
}); </script>