Answers - CODING TASKS

How to fetch limited text from database in PHP ?

<?php $string = “Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et...

Apr 8 · 20 sec read >

Store radio button value in PHP variable

<form method="post"> <input type="radio" name="gender" value="male">Male <input type="radio" name="gender" value="female">Female <input type="submit" name="submit" value="Get Value"> </form> <?php if(isset($_POST)){ //...

Mar 15 · 12 sec read >

Get value from text editor javascript

<input type="button" value="Get"> <textarea id="content" name="content">Data initial text</textarea> <script> $(':button').click(function() { var content = $("#content").val(); alert( content ); //some...

Mar 10 · 9 sec read >

Restrict space at first position in textarea using jquery javascript

<input type="text"> <script> $("input").on("keypress", function(e) { if (e.which === 32 && !this.value.length){ e.preventDefault(); alert("Space at first position is not...

Mar 10 · 7 sec read >