Subversion Repositories SmartDukaan

Rev

Rev 18898 | Rev 18918 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18898 Rev 18917
Line 13... Line 13...
13
// 			alert(tin);
13
// 			alert(tin);
14
			var value = "true";
14
			var value = "true";
15
			if(tin == '')
15
			if(tin == '')
16
		    {
16
		    {
17
		        value = "false";
17
		        value = "false";
18
		        message = "Please enter tin number";    
18
		        message = "*Please enter tin number";    
19
		        
19
		        
20
		    }
20
		    }
21
 
21
 
22
		    else if(tin.match(/^\d{11}$/) == null)
22
		    else if(tin.match(/^\d{11}$/) == null)
23
		    {
23
		    {
24
		        value = "false";
24
		        value = "false";
25
		        message = "Invalid tin number";    
25
		        message = "*Tin number should be of 11 digit.Delhi user add 0 before tin no.";    
26
		    }
26
		    }
27
 
27
 
28
		    if(value == "false"){
28
		    if(value == "false"){
29
		    	$('#message').html(message);
29
		    	$('#message').html(message);
30
		        $('#message').removeClass('hidden');
30
		        $('#message').removeClass('hidden');
31
		        setTimeout(function() {
31
// 		        setTimeout(function() {
32
		                    $('#message').addClass('hidden');
32
// 		                    $('#message').addClass('hidden');
33
		                }, 2000);  
33
// 		                }, 2000);  
34
// 		        return false;
34
// 		        return false;
35
			    }
35
			    }
36
		    else{
36
		    else{
37
		    	$('#searchloader').removeClass('hidden');
37
		    	$('#searchloader').removeClass('hidden');
38
		    	$.ajax({
38
		    	$.ajax({
Line 53... Line 53...
53
				
53
				
54
			});
54
			});
55
		});
55
		});
56
</script>
56
</script>
57
<style>
57
<style>
58
	#message{
58
/* 	#message{ */
59
	position: fixed;
59
/* 	position: fixed; */
60
	top: 0px;
60
/* 	top: 0px; */
61
	left: 0px;
61
/* 	left: 0px; */
62
	right: 0px;
62
/* 	right: 0px; */
63
	margin-top: 0px;
63
/* 	margin-top: 0px; */
64
	z-index: 10;
64
/* 	z-index: 10; */
65
}
65
/* } */
66
#searchloader{
66
#searchloader{
67
    position:absolute;
67
    position:absolute;
68
    /*top:40%;*/
68
    /*top:40%;*/
69
    left:50%;
69
    left:50%;
70
    z-index:2001;
70
    z-index:2001;
71
}
71
}
72
</style>
72
</style>
73
<div class="alert alert-danger hidden" id="message"></div>
73
<div class="alert alert-danger hidden" ></div>
74
 
74
 
75
<div class="text-center hidden" id="searchloader">
75
<div class="text-center hidden" id="searchloader">
76
    <br><br><br><br>
76
    <br><br><br><br>
77
          <div class="hexdots-loader"></div>         
77
          <div class="hexdots-loader"></div>         
78
</div>
78
</div>
79
 
79
 
80
 
80
 
81
<div class = "container">	      
81
<div class = "container">	      
82
	<div class = "row card">
82
	<div class = "row card" style='padding-bottom:15px;'>
83
		<div class="tryagaintin hidden" style='padding:5px;'>
83
		<div class="tryagaintin hidden" style='padding:5px;'>
84
			Not your tax details? <span style="color:#58d936;" ><u>Try Again</u></span>
84
			Not your tax details? <span style="color:#58d936;" ><u>Try Again</u></span>
85
		</div>
85
		</div>
86
		
86
		
87
		
87
		
88
			
88
			
89
			
89
			
90
			<div class="input-group col-xs-12 text-right searchres" style="padding:10px 0px 15px;">
90
			<div class="input-group col-xs-12 text-right searchres" style="padding:10px 0px 1px;">
-
 
91
 
91
	            <input type="text" class="form-control" placeholder="Enter tin number*" id="tin" name="tin" style="width:98%;">
92
	            <input type="text" class="form-control" placeholder="Enter tin number*" id="tin" name="tin" style="width:98%;">
-
 
93
	            
92
	            <div class="input-group-btn w25px">
94
	            <div class="input-group-btn w25px">
93
	                <button class="btn" id='gettin' style="background-color:#58d936;color:white;">OK</button>
95
	                <button class="btn" id='gettin' style="background-color:#58d936;color:white;">OK</button>
94
	            </div>
96
	            </div>
95
	        </div>
97
	        </div>
-
 
98
	        
-
 
99
	            <span id="message" class="hidden" style="color:red;font-size:12px;float:left;"></span>
96
 
100
 
97
			
101
			
98
<!-- 			<input type="text" id="tin" name="tin" placeholder="Enter tin number*" required/> -->
102
<!-- 			<input type="text" id="tin" name="tin" placeholder="Enter tin number*" required/> -->
99
<!-- 			<button id='gettin'>Get Detail</button> -->
103
<!-- 			<button id='gettin'>Get Detail</button> -->
100
		
104