Results 1 to 4 of 4

Thread: Helppppppppppppppp!! Regarding Java Script

  1. #1
    ahmeds321 is offline Junior Member
    Last Online
    11th November 2016 @ 11:38 AM
    Join Date
    18 Feb 2009
    Age
    37
    Posts
    10
    Threads
    1
    Credits
    989
    Thanked
    0

    Default Helppppppppppppppp!! Regarding Java Script



    Mujey ap sab ek help chahye thi.
    Basically its regarding the javaScript Validate form: Textboxes, select and check box.

    I have found few of the codes however, when I edit them it doesn't work. Can someone please tell me how can I resolve this issue so I can edit the codes and it will still work. Here is the code:
    <html>
    <head>
    <title>Loas</title>
    <script language="javascript">
    function validate(agree,empty,email,select_box){
    if (empty.value == ""){
    alert("You must enter a text");
    return false;
    }
    if (agree.checked != 1){
    alert("You must agree to the rules");
    return false;
    }
    if (select_box.value == 0){
    alert("You must select an option");
    return false;
    }
    }

    </script>

    </head>
    <body>
    <form name="form1" action="page1_go.html" method="get" >

    Empty: <br />
    <input name="empty" type="text" /><br /><br />

    Check box: <input name="agree" type="checkbox" value="" /><br /><br />

    <select name="select_box">
    <option value="0">Please choose</option>
    <option value="1">Option 1 </option>
    <option value="2">Option 2 </option>
    </select>


    <input name="submit" type="submit" value="Go!" onclick="return validate(agree,empty,select_box)"/>

    </form>
    </body>
    </html>

    but if i edit them they don't work any help plz???

  2. #2
    M-Qasim's Avatar
    M-Qasim is offline Advance Member+
    Last Online
    7th September 2022 @ 07:41 PM
    Join Date
    22 Mar 2009
    Gender
    Male
    Posts
    33,351
    Threads
    915
    Credits
    1,718
    Thanked
    3391

    Default

    Moved from GD to AAE

  3. #3
    Join Date
    23 May 2013
    Gender
    Male
    Posts
    701
    Threads
    28
    Credits
    1,041
    Thanked
    58

    Default

    Kya chez edit krna chahty hain..?? detail to btain konsi field,, or konsi value ko edit krna chahty hain..??
    Expert In: PHP/MySQLi, Web Designing, SEO, Tips and Tricks, Wordpress, Social Networking, Programming.
    I hate ITD Moderators

  4. #4
    The Genius's Avatar
    The Genius is offline Advance Member
    Last Online
    4th November 2023 @ 12:27 AM
    Join Date
    21 Feb 2011
    Gender
    Male
    Posts
    977
    Threads
    16
    Credits
    668
    Thanked
    85

    Default

    Bhai problem kia he ye to btao. Kia karna chah rahe ho jo nhin ho raha?

Similar Threads

  1. 300 and more PHP Scripts For Webmaster (Super Pack)
    By waqar555 in forum English IT Zone
    Replies: 27
    Last Post: 15th October 2013, 09:42 AM
  2. Java Script Book Needed
    By Rada in forum Educational Help
    Replies: 1
    Last Post: 3rd November 2012, 03:18 PM
  3. Java script required ?
    By libran in forum Ask an Expert
    Replies: 2
    Last Post: 24th September 2011, 10:43 PM
  4. Help About Java script
    By Raja Badar in forum Ask an Expert
    Replies: 3
    Last Post: 19th August 2011, 12:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •