Skip to content

Instantly share code, notes, and snippets.

View manoj-singh-developer's full-sized avatar
🎯
Focusing

Manoj Singh manoj-singh-developer

🎯
Focusing
View GitHub Profile
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.24/angular.min.js"></script>
<div class="col-md-12" >
<div class="box">
<div class="box-header">
<h3 class="box-title">Simple Full Width Table</h3>
</div>
<div class="box-body no-padding">
<script type="text/javascript">
$(document).ready(function(){
var maxLength = 100;
$(".show-read-more").each(function(){
var myStr = $(this).text();
if($.trim(myStr).length > maxLength){
var newStr = myStr.substring(0, maxLength);
var removedStr = myStr.substring(maxLength, $.trim(myStr).length);
$(this).empty().html(newStr);
$(this).append(' <a href="javascript:void(0);" class="read-more">read more...</a>');
<script>
$(document).ready(function () {
$('#personalform').on('submit', function (e) {
var phone = document.getElementById("mobile2").value;
if (phone == "") {
alert('Please type phonoe number .');
return false;
}
<link href="https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
$(document).ready(function () {
var data = [
{'label': 'Dr.Hari', 'value': 1},
{'label': 'Sapna Clinic', 'value': 2},
function checkLogin(){
$('#errorLogin').text('');
var emails = $('#email_in').val();
var passwords = $('#password_in').val();
if(emails == '' || passwords == '' ){
$('#errorLogin').text('Please enter correct details.');
return false;
}
$.post("http://www.discountoncard.com/users/ajaxLogin", {"email": emails, "password": passwords}, function (d) {
var result = JSON.parse(d);
<input type="button" id="delete-file" value='Delete' />
document.getElementById('delete-file').onclick = function () {
if (confirm('Are you sure??')) {
parent.location='<?php echo "users/delete/" . $manoj['id'] ?>';
}
};