Wednesday, June 5, 2013

Jquery fundamental

<script language="javascript" type="text/javascript">

$(document).ready(function () {

$("#dialog").dialog();

$("a[href*='example']").css("color", "Red");

$("a[href$='.com']").css("color", "Red");

$("a[href^='mailto']").css("color", "Red");

$("a[rel='nofollow']").css("color", "Red");

$("a[rel!='nofollow']").css("color", "green");

$("a[href]").css("color", "Red");

$("#<%=txtLocation.ClientID%>").css("border-color", "blue");

$(".para1").css("background-color", "Yellow");

$(".para2").css("background-color", "lime");

$("p.para1").css("background-color", "Yellow");

$("span").css("background-color", "Yellow");

$("input:text").css("border-color", "blue");

$("textarea").css("border-color", "blue");

$("textarea, input:text").css("border-color", "blue");



});

function dispsrvice() {

var pgurl = '<%=ResolveUrl("~/webser.asmx") %>'

$.ajax({ Type: "Post",

//data: "{}",

data: "{'NameInfo':'" + $('#<%=txtName.ClientID%>').val() + "'}",

url: pgurl + "/Dispmsg",

contentType: "application/json;charset=Utf-8",

dataType: "Json",

success: "",

error: ""



});

}



</script>

No comments:

Post a Comment