Topic: jQuery

Laravel 5.7 Delete Confirm Bootstrap jQuery Model 0

Laravel 5.7 Delete Confirm Bootstrap jQuery Model

Today, We want to share with you Laravel 5.7 Delete Confirm Bootstrap jQuery Model.In this post we will show you Delete Modal Popup with Laravel 5.7, Bootstrap and jQuery, hear for Laravel 5.7 – Confirmation before delete record from database example we will give you demo and example for implement.In this post, we will learn about Laravel 5.7 – confirmation box for delete a member from database with an example.

Laravel 5.7 Delete Confirm Bootstrap jQuery Model

There are the Following The simple About Laravel 5.7 Delete Confirm Bootstrap jQuery Model Full Information With Example and source code.

As I will cover this Post with live Working example to develop , so the Use bootstrap dynamic modal for delete confirmation (laravel 5.7) for this example is following below.

Step : 1 Define Route

routes/web.php

Route::get('products', '[email protected]')->name('products');
Route::delete('products/{id}', '[email protected]')->name('product-delete');

Step : 2 Create Laravel Controller

app/Http/Controllers/ProductController.php file in

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use DB;
use Session;

class ProductController extends Controller
{
    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $products = DB::table("products")->get();
        return view('products',compact('products'));
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function destroy($id)
    {
    	DB::table("products")->delete($id);
    	Session::put('success', 'Your Record Deleted Successfully.');
    	return redirect()->route('products');
    }
}

Step : 3 Define a Laravel blade/view File

resources/views/product.blade.php

@extends('layouts.app')
@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                @if ($message = Session::get('success'))
                <div class="product-default-alerts alert alert-success fade in">
                    <button type="button" class="close"></button>
                    {!! $message !!}
                </div>
                
                @endif                
                <div class="panel-heading">All Posts</div>
                <div class="panel-body">
                    <table class="table table-bordered">
                    	<thead>
                    		<tr>                    			
	                    		<th>Title</th>
	                    		<th>Description</th>
	                    		<th>Action</th>
                    		</tr>
                    	</thead>
                    	<tbody>
                            @foreach($product as $key => $value)
                                <tr>
                                    <td>{!! $value->title !!}</td>
                                    <td>{!! $value->description !!}</td>
                                    <td>
                                        <a class="btn btn-danger waves-effect waves-light remove-record">id) !!}" data-id="{{$value->id}}" data-target="#product-default-width-modal">Delete</a>
                                    </td>
                                </tr>
                            @endforeach                            
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Delete Product Model -->
<form action="" method="POST" class="product-delete-record-model">
    <div id="product-default-width-modal" class="modal fade" role="dialog">
        <div class="modal-dialog" style="width:55%">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close">×</button>
                    <h4 class="modal-title" id="product-default-width-modalLabel">Delete Record</h4>
                </div>
                <div class="modal-body">
                    <h4>You Want You Sure Delete This Record?</h4>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default waves-effect remove-data-from-delete-form">Close</button>
                    <button type="submit" class="btn btn-danger waves-effect waves-light">Delete</button>
                </div>
            </div>
        </div>
    </div>
</form>
@endsection

@section('script')

@endsection	

Step : 4 Main product-default.js File include

public/product-default.js

$(document).ready(function(){
	// For A Delete Record Popup
	$('.remove-record').click(function() {
		var id = $(this).attr('data-id');
		var url = $(this).attr('data-url');
		var token = CSRF_TOKEN;
		$(".product-delete-record-model").attr("action",url);
		$('body').find('.product-delete-record-model').append('');
		$('body').find('.product-delete-record-model').append('');
		$('body').find('.product-delete-record-model').append('');
	});

	$('.remove-data-from-delete-form').click(function() {
		$('body').find('.product-delete-record-model').find( "input" ).remove();
	});
	$('.modal').click(function() {
		// $('body').find('.product-delete-record-model').find( "input" ).remove();
	});
});

Run Laravel Project

php artisan serve
http://localhost:8000/products

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Laravel 5.7 Delete Confirm Bootstrap jQuery Model.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Fixed Sticky Header scrolling in JQuery Example 0

Fixed Sticky Header scrolling in JQuery Example

Today, We want to share with you Fixed Sticky Header scrolling in JQuery Example.In this post we will show you Fixed sticky header when scrolling, hear for smooth sticky header on scroll jquery we will give you demo and example for implement.In this post, we will learn about Facebook Style Scroll Fixed Header in JQuery with an example.

Fixed Sticky Header scrolling in JQuery Example

There are the Following The simple About Fixed Sticky Header scrolling in JQuery Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop sticky header on scroll jquery, so the fixed header on scroll html for this example is following below.

Fixed sticky header when scrolling

The HTML Part

<HTML>
<HEAD>
	<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
	<title>jQuery Examples - Scroll Fixed Header like Facebook in JQuery - pakainfo.com</title>
</HEAD>
<BODY>

<div id="header_part">
	<h1>Simple Scroll Fix Header like Facebook in JQuery</h1>
</div>

<p>Create A Facebook Like Sticky Sidebar - jQuery Examples<br/><br/><br/><br/><br/></p>
<p> jQuery Fixed Header - Fixed Position Div Plugin with Examples<br/><br/><br/><br/><br/></p>
<p>jquery - CSS and HTML5 for this fixed header on scroll<br/><br/><br/><br/><br/></p>
<p>Sticky Sidebar Scroll Jquery Plugin - Stop Sidebar Scroll at End<br/><br/><br/><br/><br/></p>
<b>fixing a sidebar while scrolling, until bottom with jquery</b>
</BODY>
</HTML>

The JQuery Part

<SCRIPT>
$(document).ready(function() {

	var div = $('#header_part');
	var start = $(div).offset().top;

	$.event.add(window, "scroll", function() {
		var p = $(window).scrollTop();
		$(div).css('position',((p)>start) ? 'fixed' : 'static');
		$(div).css('top',((p)>start) ? '0px' : '');
	});

});
</SCRIPT>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Fixed Sticky Header scrolling in JQuery Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Multiple Checkbox Check Uncheck All using jQuery 0

Multiple Checkbox Check Uncheck All using jQuery

Today, We want to share with you Multiple Checkbox Check Uncheck All using jQuery.In this post we will show you select multiple rows with checkboxes using jquery datatable, hear for Select/Deselect all checkboxes using jQuery we will give you demo and example for implement.In this post, we will learn about jQuery: Check Uncheck All / Select Deselect All CheckBoxes in HTML with an example.

Multiple Checkbox Check Uncheck All using jQuery

There are the Following The simple About Multiple Checkbox Check Uncheck All using jQuery Full Information With Example and source code.

As I will cover this Post with live Working example to develop jquery select all checkboxes in table column, so the jquery multiselect checkbox select all for this example is following below.

select all checkbox jquery

The HTML Part

<HTML>
<HEAD>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
	<TITLE>Multiple Checkbox Select/Deselect - pakainfo.com</TITLE>
</HEAD>
<BODY>
	<H2>Multiple Checkbox Select/Deselect - pakainfo.com</H2>
<table border="1">
<tr>
	<th><input type="checkbox" id="checkAll"/></th>
	<th>Product</th>
	<th>Price</th>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="1"/></td>
	<td>Laptop</td>
	<td>USD 98256</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="2"/></td>
	<td>Samsung Galaxy</td>
	<td>USD 25</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="3"/></td>
	<td>Iphone</td>
	<td>USD 120</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="4"/></td>
	<td>Books</td>
	<td>USD 120</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="5"/></td>
	<td>Apple iPhone 4</td>
	<td>USD 250</td>
</tr>
</table>

</BODY>
</HTML>

The jQuery Code

Add following jQuery source code in HTML part in HEAD section of above Example

<SCRIPT language="javascript">
$(function(){

	$("#checkAll").click(function () {
		  $('.product-details').attr('checked', this.checked);
	});

	$(".product-details").click(function(){

		if($(".product-details").length == $(".product-details:checked").length) {
			$("#checkAll").attr("checked", "checked");
		} else {
			$("#checkAll").removeAttr("checked");
		}

	});
});
</SCRIPT>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Multiple Checkbox Check Uncheck All using jQuery.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

JavaScript Dynamic Input Form Example 0

JavaScript Dynamic Input Form Example

Today, We want to share with you JavaScript Dynamic Input Form Example.In this post we will show you Create a form dynamically with jquery and submit, hear for dynamic form fields – add & remove bootstrap 4 we will give you demo and example for implement.In this post, we will learn about dynamically add input fields and submit to database with jquery with an example.

JavaScript Dynamic Input Form Example

There are the Following The simple About JavaScript Dynamic Input Form Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop Dynamically html form using jQuery, so the Add Remove Input Fields Dynamically using jQuery for this example is following below.

Dynamically add element in HTML form.

Simple Dynamically add HTML button, textbox, input, checkbox, radio elements in html form using JavaScript.

index.html

<HTML>
<HEAD>
<TITLE>Dynamically add Textbox, Radio, Button in html Form using JavaScript</TITLE>
<SCRIPT language="javascript">
function add(type) {

	//Create HTML an input type dynamically.
	var formfield = document.createElement("input");

	//Assign HTML different input attributes to the formfield.
	formfield.setAttribute("type", type);
	formfield.setAttribute("value", type);
	formfield.setAttribute("name", type);


	var foo = document.getElementById("preview");

	//insert the formfield in page (in span).
	foo.appendChild(formfield);

}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<H2>Dynamically add formfield in form.</H2>
Select the formfield and hit Add to add it in form.
<BR/>
<SELECT name="formfield">
	<OPTION value="button">Button</OPTION>
	<OPTION value="text">Textbox</OPTION>
	<OPTION value="radio">Radio</OPTION>
</SELECT>

<INPUT type="button" value="Add" onclick="add(document.forms[0].formfield.value)"/>

<span id="preview"> </span>

</FORM>
</BODY>
</HTML>

Full Source code : Dynamic Input Form

Adding input elements dynamically to form

<html>
<head>
<title>Add Remove Input Fields Dynamically using jQuery</title>
    <script type='text/javascript'>
        function addProducts(){
            var number = document.getElementById("product").value;
            var company_dtl = document.getElementById("company_dtl");
            while (company_dtl.hasChildNodes()) {
                company_dtl.removeChild(company_dtl.lastChild);
            }
            for (i=0;i<number;i++){

                company_dtl.appendChild(document.createTextNode("Product " + (i+1)));
                var input = document.createElement("input");
                input.type = "text";
                input.name = "product" + i;
                company_dtl.appendChild(input);
                company_dtl.appendChild(document.createElement("br"));
            }
        }
    </script>
</head>
<body>
    <input type="text" id="product" name="product" value="">Number of products: (max. 10)<br />
    <a href="#" id="filldetails" onclick="addProducts()">Fill Details</a>
    <div id="company_dtl"/>
</body>
</html>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about JavaScript Dynamic Input Form Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

JQuery QR Code Scanner reader using camera Example 0

JQuery QR Code Scanner reader using camera Example

Today, We want to share with you JQuery QR Code Scanner reader using camera Example.In this post we will show you Read BarCode or QR Code using jQuery WebCodeCam , hear for JQuery HTML5 QR Code Scanner using Instascan JS Example we will give you demo and example for implement.In this post, we will learn about jQuery Plugin For BarCode and QR Code Reader with an example.

JQuery QR Code Scanner reader using camera Example

There are the Following The simple About JQuery QR Code Scanner reader using camera Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop jQuery and HTML5 based QR-code reader, so the javascript – Barcode scanner for html5 and jquery application for this example is following below.

JQuery HTML5 QR Code Scanner Example



	<title>jquery - Read qrcode from a web page with camera - pakainfo.com</title>
	
	


  
    <h1>jQuery Plugin For BarCode and QR Code Reader Example - pakainfo.com</h1>
    
    <video id="data_content_display"></video>
	
	<a href="https://pakainfo.com/" target="_blank" title="pakainfo">Free Download Example - Pakainfo.com</a>
	
    
      let get_scanner = new Instascan.Scanner({ video: document.getElementById('data_content_display') });
      get_scanner.addListener('scan', function (livemycameras) {
        alert(livemycameras);
      });
      Instascan.Camera.getCameras().then(function (livemycameras) {
        if (livemycameras.length > 0) {
          get_scanner.start(livemycameras[0]);
        } else {
          console.error('Sorry, No Any One cameras found.');
        }
      }).catch(function (e) {
        console.error(e);
      });
    
   


Read qrcode from a web page with camera

We can simple all the data read QR Codes readers using instascan.

Sample code to read QR Code.


  
    <title>pakainfo.com - QR Code Reader using Instascan</title>
    
  
  
	<a href="https://pakainfo.com/" target="_blank" title="pakainfo">Free Download Example - Pakainfo.com</a>
    <video id="Data_preview"></video>
    
      let scanner = new Instascan.Scanner({ video: document.getElementById('Data_preview') });
      scanner.addListener('scan', function (qr_code) {
        console.log(qr_code);
      });
      Instascan.Camera.getCameras().then(function (cameras) {
        if (cameras.length > 0) {
          scanner.start(cameras[0]);
        } else {
          console.error('Sorry, No cameras found.');
        }
      }).catch(function (e) {
        console.error(e);
      });
    
  

Angular 6 CRUD Operations Application Tutorials

Read :

Related Search: jquery barcode scanner example, jquery webcam qr code reader, jquery instascan example, qr code scanner jquery mobile, jquery barcode scanner camera, javascript barcode scanner example, jquery qr code reader, barcode scanner javascript html5,javascript qr code reader mobile, jquery qr code reader, javascript qr code scanner, php qr code reader camera, qr code decoder javascript, instascan example, html5 qr code reader iphone, php qr code reader webcam

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about JQuery QR Code Scanner reader using camera Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

jQuery parseInt Convert String to Integer Number 0

jQuery parseInt Convert String to Integer Number

Today, We want to share with you jQuery parseInt Convert String to Integer Number.In this post we will show you jQuery convert number to string, hear for jquery convert string to double we will give you demo and example for implement.In this post, we will learn about javascript get number from string with an example.

jQuery parseInt Convert String to Integer Number

There are the Following The simple About jQuery parseInt Convert String to Integer Number Full Information With Example and source code.

As I will cover this Post with live Working example to develop jquery convert string to decimal, so the jquery convert string to float for this example is following below.

jQuery parseInt() – Convert String to Integer Number

syntax of parseInt() function

parseInt(string, radix)

jQuery – Convert string to integer

var dataInput = '921795';
var numValue = parseInt(dataInput);

Example 2: Convert String to Integer Number

var dataInput = '92 17 95';
var numValue = parseInt(dataInput);

JavaScript parseInt() Function

<!DOCTYPE html>
<html>
<body>
<p>Click the simple HTML button to parse different strings.</p>

<button onclick="myFunctionparseInt()">Click it</button>

<p id="examples"></p>

<script>
function myFunctionparseInt() {
  var a = parseInt("20") + "<hr>";
  var b = parseInt("20.00") + "<hr>";
  var c = parseInt("20.33") + "<hr>";
  var d = parseInt("34 45 66") + "<hr>";
  var e = parseInt("   60   ") + "<hr>";
  var f = parseInt("40 years") + "<hr>";
  var g = parseInt("He was 40") + "<hr>";

  var h = parseInt("20", 10)+ "<hr>";
  var i = parseInt("010")+ "<hr>";
  var j = parseInt("10", 8)+ "<hr>";
  var k = parseInt("0x10")+ "<hr>";
  var l = parseInt("10", 16)+ "<hr>";

  var n = a + b + c + d + e + f + g + "<hr>" + h + i + j + k +l;
  document.getElementById("examples").innerHTML = n;
}
</script>

</body>
</html>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about jQuery parseInt Convert String to Integer Number.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Data Tables State save local storage in jQuery 0

Data Tables State save local storage in jQuery

Today, We want to share with you Data Tables State save local storage in jQuery.In this post we will show you Datatables stateSave option: “remember” search and filters, hear for How To Save Custom Filter State with JQuery Data Tables we will give you demo and example for implement.In this post, we will learn about JQuery Data Tables server side processing with state saving with an example.

Data Tables State save local storage in jQuery

There are the Following The simple About Data Tables State save local storage in jQuery Full Information With Example and source code.

As I will cover this Post with live Working example to develop stateSave option in jQuery DataTables, so the datatables state save server side for this example is following below.

JQuery Datatables state save local storage

Syntex

$('#live_product_tbl').dataTable( {
    "stateSave": true
} );

State saving

$(document).ready(function() {
    $('#live_product_tbl').DataTable( {
        ajax:           "../data/documents.txt",
        deferRender:    true,
        scrollY:        200,
        scrollCollapse: true,
        scroller:       true,
        stateSave:      true
    } );
} );

Example : stateSave option in jQuery DataTables,

  $('#live_product_tbl').dataTable({
        "iDisplayLength": 100
    });

And then, the only changes thing we need to include is this:

$('#live_product_tbl').dataTable({
        "iDisplayLength": 100,
        stateSave: true
    });

And as soon as We simple navigate back to the View page (with any events click “Back” button or even reload the page), your last search filters, page and sorting will stay current active.

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Data Tables State save local storage in jQuery.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

jQuery Ajax Get JSON in Laravel Example 0

jQuery Ajax Get JSON in Laravel Example

Today, We want to share with you jQuery Ajax Get JSON in Laravel Example.In this post we will show you Using Ajax and returning json array in laravel 5, hear for JQuery Ajax Post Request Example in Laravel 5.7 we will give you demo and example for implement.In this post, we will learn about Jquery Ajax Post Example For Submitting AJAX Forms in Laravel with an example.

jQuery Ajax Get JSON in Laravel Example

There are the Following The simple About jQuery Ajax Get JSON in Laravel Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop HTTP POST Request With jQuery AJAX , so the how to retrieve data from database using ajax in laravel for this example is following below.

In routes.php

route post('product-data', '[email protected]');

layout files

<meta name="csrf-token" content="{{ csrf_token() }}" />

var CSRF_TOKEN = $('meta[name="csrf-token"]').attr('content');

jQuery Ajax code

$.ajax({
    url: '/product-data/',
    type: 'POST',
    data: {_token: CSRF_TOKEN},
    dataType: 'JSON',
    success: function (data) {
        console.log(data);
    }
});

Laravel Controller code

$data = "Welcome to Laravel Examples";
return ['success' => true, 'data' => $data];

Example 2: Access JSON response in AJAX success function

HTML Part

<script src="http://code.jquery.com/jquery-3.3.1.min.js">
</script>
<script>
         jQuery(document).ready(function(){
            jQuery('#ajaxSubmit').click(function(e){
               e.preventDefault();
               $.ajaxSetup({
                  headers: {
                      'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')
                  }
              });
               jQuery.ajax({
                  url: "{{ url('/product/post') }}",
                  method: 'post',
                  data: {
                     name: jQuery('#name').val(),
                     type: jQuery('#type').val(),
                     price: jQuery('#price').val()
                  },
                  success: function(result){
                     console.log(result);
                  }});
               });
            });
</script>

productController.php

use App\product;

 public function store(Request $request)
 {
        $product = new product();
        $product->name = $request->name;
        $product->type = $request->type;
        $product->price = $request->price;

        $product->save();
        return response()->json(['success'=>'Data is successfully added']);
 }

 

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about jQuery Ajax Get JSON in Laravel Example, laravel ajax get, laravel 5.5 ajax crud, laravel ajax response, laravel 5.7 ajax example,ajax call in laravel blade and laravel ajax form submit.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Validate Email Password Using jQuery 0

Validate Email Password Using jQuery

Today, We want to share with you Validate Email Password Using jQuery.In this post we will show you jquery email validation regex, hear for password and confirm password validation in javascript we will give you demo and example for implement.In this post, we will learn about password validation in javascript using regular expression with an example.

Validate Email Password Using jQuery

There are the Following The simple About Validate Email Password Using jQuery Full Information With Example and source code.

As I will cover this Post with live Working example to develop Password Validation using regular expressions, so the Email Validation Using jQuery Codes for this example is following below.

jQuery Email-Password Validation Checks

index.html

<html>
<head>
<title></title>
<link href="validate_style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function validate()
{
 var email=$("#email").val();
 var pass=$("#password").val();
 
 var email_regex=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
 var setrules1=/([a-z].*[A-Z])|([A-Z].*[a-z])([0-9])+([!,%,&,@,#,$,^,*,?,_,~])/;
 var setrules2=/([0-9])/;
 var setrules3=/([!,%,&,@,#,$,^,*,?,_,~])/;

 if(email_regex.test(email)==false)
 {
  alert("Please Enter Correct Email");
  return false;	
 }
 else if(pass.length<8 || setrules1.test(pass)==false || setrules2.test(pass)==false || setrules3.test(pass)==false)
 {
  alert("Please Enter Strong Password");
  return false;
 }
 else
 {
  return true;
 }
}
</script>
</head>
<body>
<div id="wrapper">

<div id="user_form">
<p id="form_label">REGISTER FORM</p>
 <form method="post" onsubmit="return validate();">
  <input type="text" id="email" placeholder="Enter Email">>
  <input type="password" id="password" placeholder="*******">>
  <input type="submit" value="SUBMIT">
 </form>
<p id="pass_note">Password Must Be At Least 8 Digits Long And Contains One UpperCase, One LowerCase And One Special Character</p>
</div>

</div>
</body>
</html>

Step 2: validate_style.css
body
{
 margin:0 auto;
 padding:0px;
 text-align:center;
 width:100%;
 font-family: "Myriad Pro","Helvetica Neue",Helvetica,Arial,Sans-Serif;
 background-color:#ECF0F1;
}
#wrapper
{
 margin:0 auto;
 padding:0px;
 text-align:center;
 width:995px;
}
#wrapper h1
{
 margin-top:50px;
 font-size:45px;
 color:#626567;
}
#wrapper h1 p
{
 font-size:18px;
}
#user_form
{
 background-color:#B3B6B7;
 width:300px;
 margin-left:330px;
 padding:10px;
}
#user_form #form_label
{
 margin:0px;
 margin-bottom:20px;
 font-size:25px;
 font-weight:bold;
 color:#626567;
 text-decoration:underline;
}
#user_form input[type="text"],input[type="password"]
{
 width:250px;
 height:35px;
 padding:10px;
 margin-top:5px;
}
#user_form input[type="submit"]
{
 width:248px;
 height:35px;
 margin-top:5px;
 margin-left:-3px;
 background:none;
 border:1px solid white;
 color:white;
 font-weight:bold;
}
#user_form #pass_note
{
 color:#424242;
 font-size:14px;
 font-style:italic;
}

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Validate Email Password Using jQuery.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Angularjs Check duplicated value in array 0

Angularjs Check duplicated value in array

Today, We want to share with you Angularjs Check duplicated value in array.In this post we will show you AngularJS find duplicate objects in array, hear for Removing Duplicate Entries from ng-repeat in AngularJS we will give you demo and example for implement.In this post, we will learn about Calculate If Duplicates Exist In An Array Using AngularJS with an example.

Angularjs Check duplicated value in array

There are the Following The simple About Angularjs Check duplicated value in array Full Information With Example and source code.

As I will cover this Post with live Working example to develop underscore js find duplicates in array, so the AngularJS check for duplicate entries for this example is following below.

Implementing our Test Controller

var homeApp = angular.module('homeApp', []);

homeApp.controller('homeController' , function ($scope) {
    $scope.list = [
        { 'name' : "Mobile" },
        { 'name' : "Mobile" },
        { 'name' : "Mobile" },
        { 'name' : "ipod" },
        { 'name' : "Computer" },
        { 'name' : "Computer" },
        { 'name' : "Computer" },
        { 'name' : "iPhone" },
        { 'name' : "Laptop" },
        { 'name' : "Laptop" },
        { 'name' : "Laptop" },
        { 'name' : "iPeed" }
        ];
});

<html ng-app="homeApp">
<head>
    <title>AngularJS Removing Duplicates from ng-repeat</title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
</head>
<body ng-controller="homeController">
    
    <ul>
        <li ng-repeat="item in list">{{item.name}}</li>
    </ul>
    
    <script src="script.js"></script>
</body>
</html>

Filtering Out Duplicates

var homeApp = angular.module('homeApp', []);

homeApp.filter('unique', function() {
   return function(collection, keyname) {

      var output = [], 
          keys = [];
      
      angular.forEach(collection, function(item) {
          var key = item[keyname];
          if(keys.indexOf(key) === -1) {
              keys.push(key); 
              output.push(item);
          }
      });
      return output;
   };
});

homeApp.controller('homeController' , function ($scope) {
    $scope.list = [
        { 'name' : "Mobile" },
        { 'name' : "Mobile" },
        { 'name' : "Mobile" },
        { 'name' : "ipod" },
        { 'name' : "Computer" },
        { 'name' : "Computer" },
        { 'name' : "Computer" },
        { 'name' : "iPhone" },
        { 'name' : "Laptop" },
        { 'name' : "Laptop" },
        { 'name' : "Laptop" },
        { 'name' : "iPeed" }
        ];
});

Modifying our Index File

<li ng-repeat="product in list | unique : 'name'">{{product.name}}</li>

Filtering by Nested Properties
<li ng-repeat="product in list | unique:'name.nested_property'>{{product.name}}</li>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Angularjs Check duplicated value in array.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.