In this section I will show you that how we can use the simple regular expression to know whether the specified string contains the special characters or not.
You can create a new row in the existing html table at run time using the jQuery. The following code sample shows how to create a new row in to the html table. Continue reading Code snippet: Create a new row in the HTML table using jQuery
You need to replace web grid id from the #employeeGrid in the third line of the function. Continue reading Code snippet: Create JSON string from the web grid in MVC 4
The following code samples demonstrate how can you change the text of the existing controls at client side. The example change the text of a button ‘show image’ to ‘hide image’ after showing the image on the click event. You can see in the below demo:
The example demonstrates how to show a DIV element on the load event of the web document in the centre using the jQuery. In the below tou can see the html code, jQuery code and needed CSS.
Today i have a requirement to redirect page to another on the basis of the some condition using the scripting and i use the windows.location.href. There are others method to redirect the page: you can use the windows.location.href= and windows.location.replace() .
The HTML select element represents a control that presents the collection of the options. The options within the collection are represented by option elements. The select element behaves just like a menu that contains the various sub menu-items. In this post we will see the various task on the select and option elements using jQuery.
I need to restrict certain number of input field to takes only numbers values. Basically my form is not a submit form so that i can not put the simple validation on the form submission. I want the user to be unable to enter the any other characters than numeric values.
We can use the document.location.reload() function to refresh or reload the current web page in jQuery.