Thursday, 10 August 2017

Jquery ID Selector

Enter Comment:



<html>
<head>
<title>Jquery Selector Girfa Student Help</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
   $(document).ready(function(){
    $("button").click(function(){
        $("#container").text($("#data").val());
    });
});
</script>
</head>
<body>
Enter Comment:  <br /><textarea id="data" rows="7" cols="50"></textarea><br /><br /> <button>Add</button>
<p id="container">

</p>
</body>

Wednesday, 9 August 2017

Jquery class selector

You can select a HTML tag with its class name which is used by tag. When you know class name then you can add custom HTML from a function of java script using jquery class selector.

<html>
<head>
    <title>Girfa Student Help</title>
    <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js"></script>
    <style>
        .para
        {
            text-align:center;

Tuesday, 8 August 2017

2d Array Compare

Q : Write a function that returns 1 if the two matrices passed to it as argument are equal and 0
otherwise.

Solution : 


#include<stdio.h>
#include<conio.h>
#define ROW 2
#define COL 2
int compare(int a1[ROW][COL],int a2[ROW][COL]);
void main()
{
     int ar1[ROW][COL],ar2[ROW][COL],r,c;
     clrscr();

Jquery Page Scroller



Jquery Page Scroller


Page scroller make your web page design more attractive and formal because when a user want see other part of your page, then  he/she need to scroll page up or down using scroll bar or mouse wheel which was accepted before of jquery. Now if we have jquery then why we used traditional page design.So scroller you page using jquery.

Page scroller also helps to design single page website.

Scroll to Top of window

$('html, body').animate({ scrollTop: 0 }, 0);
$('html, body').animate({ scrollTop: 0 }, 'slow');


Scroll to selected area of web page

function Trans(id)
        {
            $('html, body').animate({