Ben

About Ben

This author has not yet filled in any details.
So far Ben has created 60 blog entries.

jQuery – Selector Starts-Ends With

Selector Starts With: $('input[name^=somePrefix]').doSomething(); Selector ENDS with: $('input[name$=someSuffix]').doSomething(); In ASP.Net: This is particularly useful in ASP.Net when you may not want to specify clientidmode static, but still want to use [...]

2019-02-06T23:56:27-04:00August 6, 2018|Tags: , |

jQuery – Get Ajax Post Error Details

$.post('status.ajax.php', {deviceId: id}) .done( function(msg) { ... } ) .fail( function(xhr, textStatus, errorThrown) { alert(xhr.responseText); }); http://stackoverflow.com/a/12116790/4669143

2019-02-06T23:57:31-04:00August 6, 2018|Tags: |

jQuery – Enable or Disable Inputs

$("input").prop('disabled', true); $("input").prop('disabled', false); This will automatically add/remove the 'disabled' property of the element. Source: http://stackoverflow.com/a/1414366/4669143

2019-02-06T23:58:43-04:00August 6, 2018|Tags: |

Post Guidelines – Outdated (Google Prettify)

Background This site uses Markdown for simplified input and Google Prettify for syntax highlighting. Adding Code to a Post There are two ways to add code to a post using [...]

2024-04-08T02:36:28-03:00February 28, 2018|
Go to Top