Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 142533

How to minify Javascript code on button click with validations

$
0
0

I have textEditor in that if a user writes Javascript function on button click it should get validated (whether the syntax is correct or not) and should minify that code and it should be done with either Javascript or angularjs!! Does anybody know that?

This is my HTML code

<div class="col-xs-12 col-sm-5 col-lg-5 paddnone">
   <textarea class="form-control" rows="5"></textarea>
   <button class="btn btn-primary" ng-click="validateAndMinify()">Validate</button>

Viewing all articles
Browse latest Browse all 142533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>