Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Yesterday at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Tuesday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
ElaKiri Programmer's Club
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="leap_coder" data-source="post: 16600343" data-attributes="member: 501433"><p>mata podi javascript case ekak thiyenawa.mama js walin form validation ekak haduwa.eka hamathissema return wenne true ne machan.mata hithaganna baha case eka moko kiyala</p><p></p><p>html eka</p><p></p><p>[CODE]</p><p>[LIST=1]</p><p>[*]<form method="post" action="operation.php" name="form1"></p><p>[*] <label>Location Name:</label><input type="text" name="name"/></p><p>[*] </br></p><p>[*] </br></p><p>[*] <label>Latitude:</label><input type="text" name="age"/></p><p>[*] </br></p><p>[*] </br></p><p>[*] <label>Lontitude:</label><input type="text" name="addr"/></p><p>[*] </br></p><p>[*] </br></p><p>[*] <input type="submit" value="Add" name="add" onclick="return validation"/></p><p>[*] </form></p><p>[/LIST]</p><p>[/CODE]</p><p></p><p>JS eka</p><p></p><p>[CODE]</p><p>[LIST=1]</p><p>[*]<script type="text/javascript"></p><p>[*] function validation(){</p><p>[*] var name=document.forms["form1"]["name"].value;</p><p>[*] var age=document.forms["form1"]["age"].value;</p><p>[*] var address=document.forms["form1"]["addr"].value;</p><p>[*] if((name==null) || (age==null) || (address==null)){</p><p>[*] alert("All the fields should be filled!!");</p><p>[*] return false;</p><p>[*] }else{</p><p>[*] alert("Successfully added!!");</p><p>[*] return true;</p><p>[*] }</p><p>[*] }</p><p>[*]</script></p><p>[/LIST]</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="leap_coder, post: 16600343, member: 501433"] mata podi javascript case ekak thiyenawa.mama js walin form validation ekak haduwa.eka hamathissema return wenne true ne machan.mata hithaganna baha case eka moko kiyala html eka [CODE] [LIST=1] [*]<form method="post" action="operation.php" name="form1"> [*] <label>Location Name:</label><input type="text" name="name"/> [*] </br> [*] </br> [*] <label>Latitude:</label><input type="text" name="age"/> [*] </br> [*] </br> [*] <label>Lontitude:</label><input type="text" name="addr"/> [*] </br> [*] </br> [*] <input type="submit" value="Add" name="add" onclick="return validation"/> [*] </form> [/LIST] [/CODE] JS eka [CODE] [LIST=1] [*]<script type="text/javascript"> [*] function validation(){ [*] var name=document.forms["form1"]["name"].value; [*] var age=document.forms["form1"]["age"].value; [*] var address=document.forms["form1"]["addr"].value; [*] if((name==null) || (age==null) || (address==null)){ [*] alert("All the fields should be filled!!"); [*] return false; [*] }else{ [*] alert("Successfully added!!"); [*] return true; [*] } [*] } [*]</script> [/LIST] [/CODE] [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom